diff --git a/examples/app/.env b/examples/app/.env index cfb253a..fea30d7 100644 --- a/examples/app/.env +++ b/examples/app/.env @@ -4,5 +4,4 @@ debug=true port=8080 appName=app -staticDir=/static secretKey=Pr435ol67ogue diff --git a/examples/app/app.nim b/examples/app/app.nim index 9ebf8ea..242106d 100644 --- a/examples/app/app.nim +++ b/examples/app/app.nim @@ -7,11 +7,12 @@ let settings = newSettings(appName = env.getOrDefault("appName", "Prologue"), debug = env.getOrDefault("debug", true), port = Port(env.getOrDefault("port", 8080)), - staticDirs = [env.get("staticDir")], + staticDirs = [], secretKey = env.getOrDefault("secretKey", "") ) var app = newApp(settings = settings) -app.addRoute(urls.urlPatterns, "/") +# Be careful with the routes. +app.addRoute(urls.urlPatterns, "") app.run() diff --git a/examples/app/urls.nim b/examples/app/urls.nim index 1cb6a08..afd373c 100644 --- a/examples/app/urls.nim +++ b/examples/app/urls.nim @@ -4,6 +4,5 @@ import ./views let urlPatterns* = @[ - # strip latter pattern("/", hello) ] diff --git a/logue.nimble b/logue.nimble index 0c44081..50e364b 100644 --- a/logue.nimble +++ b/logue.nimble @@ -1,6 +1,6 @@ # Package -version = "0.2.0" +version = "0.2.2" author = "flywind" description = "Command line tools for Prologue." license = "Apache-2.0" diff --git a/src/loguepkg/create.nim b/src/loguepkg/create.nim index 1c45140..71183ff 100644 --- a/src/loguepkg/create.nim +++ b/src/loguepkg/create.nim @@ -9,7 +9,6 @@ proc getEnvContent(appName: string): string = debug=true port=8080 appName={appName} -staticDir=/static secretKey=Pr435ol67ogue """ diff --git a/src/loguepkg/tml/app.nim b/src/loguepkg/tml/app.nim index 81269ad..dde68a8 100644 --- a/src/loguepkg/tml/app.nim +++ b/src/loguepkg/tml/app.nim @@ -8,7 +8,7 @@ let settings = newSettings(appName = env.getOrDefault("appName", "Prologue"), debug = env.getOrDefault("debug", true), port = Port(env.getOrDefault("port", 8080)), - staticDirs = [env.get("staticDir")], + staticDirs = [], secretKey = env.getOrDefault("secretKey", "") )