Update to reflect stdlib changes in Nim 1.4.

This commit is contained in:
2020-11-12 04:29:44 -06:00
parent a58c7923cb
commit 15a893d99f
4 changed files with 17 additions and 17 deletions

View File

@ -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()

View File

@ -1 +1 @@
const PTK_VERSION* = "1.0.6"
const PTK_VERSION* = "1.0.7"