main #3
1 changed files with 5 additions and 5 deletions
10
src/main.nim
10
src/main.nim
|
@ -6,7 +6,11 @@ import
|
|||
appRoutes("app"):
|
||||
"/":
|
||||
component Nav
|
||||
component Glass("Blog in a Matrix")
|
||||
component GlassHome("Blog in a Matrix")
|
||||
|
||||
"/<errorCode>":
|
||||
component Nav
|
||||
component Glass("Error: " & $errorCode)
|
||||
|
||||
"/<article>":
|
||||
component Nav
|
||||
|
@ -14,9 +18,5 @@ appRoutes("app"):
|
|||
# TODO: pass article title to component which renders the article; modify Glass or a new component is needed
|
||||
# TODO: check if article name exists otherwise route to /404
|
||||
|
||||
"/<errorCode>":
|
||||
component Nav
|
||||
component Glass("HTTP Error: " & $errorCode)
|
||||
|
||||
notfound:
|
||||
route "/404"
|
Loading…
Add table
Reference in a new issue