diff options
author | vulonkaaz <7442677+vulonkaaz@users.noreply.github.com> | 2024-06-19 17:44:29 +0200 |
---|---|---|
committer | vulonkaaz <7442677+vulonkaaz@users.noreply.github.com> | 2024-06-19 17:44:29 +0200 |
commit | 2fe3b4972f02be8b0c6143325d541ddda4b91559 (patch) | |
tree | 5b430810b19e0c6b1112c601b9e64b9e9ec72c61 /router/router.go |
Initial version
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) +} |