add pagination to home

This commit is contained in:
Paul Wilde 2024-10-16 14:01:31 +01:00
parent 005434e5f1
commit 58cca7afca

View file

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