Update to reflect stdlib changes in Nim 1.4.
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
## ===================================
|
||||
|
||||
import asyncdispatch, base64, bcrypt, cliutils, docopt, jester, json, logging,
|
||||
ospaths, sequtils, strutils, os, tables, times, uuids
|
||||
sequtils, strutils, os, tables, times, uuids
|
||||
|
||||
import nre except toSeq
|
||||
|
||||
@ -39,7 +39,7 @@ proc loadApiConfig*(json: JsonNode): PtkApiCfg =
|
||||
|
||||
template halt(code: HttpCode,
|
||||
headers: RawHeaders,
|
||||
content: string): typed =
|
||||
content: string) =
|
||||
## Immediately replies with the specified request. This means any further
|
||||
## code will not be executed after calling this template in the current
|
||||
## route.
|
||||
@ -55,7 +55,7 @@ template halt(code: HttpCode,
|
||||
template checkAuth(cfg: PtkApiCfg) =
|
||||
## Check this request for authentication and authorization information.
|
||||
## If the request is not authorized, this template immediately returns a
|
||||
## 401 Unauthotized response
|
||||
## 401 Unauthotized response
|
||||
|
||||
var authed {.inject.} = false
|
||||
var user {.inject.}: PtkUser = PtkUser()
|
||||
|
@ -1 +1 @@
|
||||
const PTK_VERSION* = "1.0.6"
|
||||
const PTK_VERSION* = "1.0.7"
|
Reference in New Issue
Block a user