Replies: 2 comments 3 replies
-
I'll check it soon If you found bug - please, create issue, not discussion |
Beta Was this translation helpful? Give feedback.
1 reply
-
Right usage with latest version: serve "0.0.0.0", 5000:
# Initialize variables before server loop
let config = configServer()
let public_dir = config["domain_name"]
staticDir public_dir ~ "js,json,css"
get "/":
{.gcsafe.}:
return mainPage(public_dir, inCookies)
get "/{title:string}":
return userPage(title,public_dir,inCookies) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi, I am having a error with configurable public dir in the following code.
main.nim
ideally I would write my code like below
main.nim
but I got error below
Beta Was this translation helpful? Give feedback.
All reactions