diff options
Diffstat (limited to 'router/router.go')
-rw-r--r-- | router/router.go | 3 |
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) } |