aboutsummaryrefslogtreecommitdiff
path: root/router/router.go
diff options
context:
space:
mode:
Diffstat (limited to 'router/router.go')
-rw-r--r--router/router.go12
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)
+}