aboutsummaryrefslogtreecommitdiff
path: root/router
diff options
context:
space:
mode:
authorvulonkaaz <7442677+vulonkaaz@users.noreply.github.com>2025-05-30 02:29:35 +0200
committervulonkaaz <7442677+vulonkaaz@users.noreply.github.com>2025-05-30 02:29:35 +0200
commit148baefc06c1558776928dd635394dbfdad63da7 (patch)
tree60a4d17c4b0e1308448f616c09b3396429232994 /router
parent9a94241730fcfdc9ee315730c213e0d8add114c7 (diff)
multiple pages
Diffstat (limited to 'router')
-rw-r--r--router/router.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/router/router.go b/router/router.go
index 7845b41..1d84815 100644
--- a/router/router.go
+++ b/router/router.go
@@ -10,7 +10,8 @@ import (
func SetRoutes(app *fiber.App) {
app.Get("/", controllers.ThreadList)
- app.Get("/thread/:id", controllers.Thread)
+ app.Get("/:page<min(0)>", controllers.ThreadList)
+ app.Get("/thread/:id<min(0)>", controllers.Thread)
app.Post("/api/post", rateLimiter, controllers.Publish)
app.Delete("/api/post", controllers.Delete)
}