025
This commit is contained in:
parent
73c57716bd
commit
b06e8f3586
2 changed files with 3 additions and 5 deletions
|
@ -2,5 +2,5 @@ import
|
|||
nimja,
|
||||
mike
|
||||
|
||||
proc login*(ctx: Context): string=
|
||||
proc signup*(ctx: Context): string=
|
||||
compileTemplateFile(getScriptDir() / "view" / "signup.nimja")
|
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue