all repos — litestore @ 00671db788a40fc2a6d7d30e5d1d5f3f6078c98d

A minimalist nosql document store.

Now using official jwt library.
h3rald h3rald@h3rald.com
Tue, 05 Nov 2019 15:51:23 +0100
commit

00671db788a40fc2a6d7d30e5d1d5f3f6078c98d

parent

5146101b6d0e3ff95473404884c2c365fd3a4f7a

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)