diff options
Diffstat (limited to 'router/router.go')
-rw-r--r-- | router/router.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/router/router.go b/router/router.go new file mode 100644 index 0000000..c6e2feb --- /dev/null +++ b/router/router.go @@ -0,0 +1,12 @@ +package router + +import ( + "paperchan.club/controllers" + "github.com/gofiber/fiber/v2" +) + +func SetRoutes(app *fiber.App) { + app.Get("/", controllers.ThreadList) + app.Get("/thread/:id", controllers.Thread) + app.Post("/api/post", controllers.Publish) +} |