all repos — litestore @ f31358f6ed48439386341b117e7756009837ded3

A minimalist nosql document store.

Now using official jwt library.
Cevasco, Fabio fabio.cevasco@siemens.com
Tue, 05 Nov 2019 15:51:23 +0100
commit

f31358f6ed48439386341b117e7756009837ded3

parent

f5eb1555870df89f737a3d9e2f86e2aaa6e155c3

M litestore.nimblelitestore.nimble

@@ -25,7 +25,7 @@ installExt = @["nim", "c", "h", "json", "ico"]

# Dependencies -requires "nim >= 1.0.0", "https://github.com/h3rald/nim-jwt" +requires "nim >= 1.0.0", "jwt" # Build
M src/litestore.nim.cfgsrc/litestore.nim.cfg

@@ -1,5 +1,4 @@

define:release -threads:on # https://blog.filippo.io/easy-windows-and-linux-cross-compilers-for-macos/
M src/litestorepkg/lib/cli.nimsrc/litestorepkg/lib/cli.nim

@@ -1,6 +1,7 @@

import parseopt, - strutils + strutils, + json import logger, config,
M src/litestorepkg/lib/server.nimsrc/litestorepkg/lib/server.nim

@@ -34,7 +34,7 @@ echo ""

LOG.info("Exiting...") quit() -template auth(uri: string): typed = +template auth(uri: string): void = let cfg = access[uri] if cfg.hasKey(reqMethod): LOG.debug("Authenticating: " & reqMethod & " " & uri)