This commit is contained in:
cereci5049 2024-06-29 15:40:44 +05:30
parent 73c57716bd
commit b06e8f3586
2 changed files with 3 additions and 5 deletions

View file

@ -2,5 +2,5 @@ import
nimja,
mike
proc login*(ctx: Context): string=
proc signup*(ctx: Context): string=
compileTemplateFile(getScriptDir() / "view" / "signup.nimja")

View file

@ -1,13 +1,11 @@
import
nimja,
mike,
segfaults,
./controller/[login]
./controller/[login, signup]
"/" -> get: ctx.login()
"/signup" -> get:
compileTemplateFile(getScriptDir() / "view" / "signup.nimja")
"/signup" -> get: ctx.signup()
servePublic("src/public", "/public")