Compare commits

..

2 commits

Author SHA1 Message Date
58cca7afca add pagination to home 2024-10-16 14:01:31 +01:00
005434e5f1 bump mummy vers 2024-10-16 13:57:51 +01:00
2 changed files with 2 additions and 1 deletions

View file

@ -11,4 +11,4 @@ bin = @["Pimvidious"]
# Dependencies
requires "nim >= 2.0.0"
requires "mummy"
requires "mummy >= 0.4.2"

View file

@ -39,6 +39,7 @@ proc staticFileHandler(request: Request) =
proc createRouter(): Router =
var router: Router
router.get("/", pageHandler)
router.get("/new/*", pageHandler)
router.get("/video.*/*", videoHandler)
router.get("/video.*/*/*/*", videoHandler)
router.get("/favicon.ico", staticFileHandler)