From b97e0403c8f0be0bf415e537981763495ae0b783 Mon Sep 17 00:00:00 2001 From: KushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com> Date: Tue, 26 Oct 2021 22:33:30 -0300 Subject: move routes to subpackage --- routes/admin.go | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 routes/admin.go (limited to 'routes/admin.go') diff --git a/routes/admin.go b/routes/admin.go new file mode 100644 index 0000000..068dda3 --- /dev/null +++ b/routes/admin.go @@ -0,0 +1,39 @@ +package routes + +import "github.com/gofiber/fiber/v2" + +func AdminVerify(c *fiber.Ctx) error { + // STUB + + return c.SendString("admin verify") +} + +func AdminAuth(c *fiber.Ctx) error { + // STUB + + return c.SendString("admin auth") +} + +func AdminIndex(c *fiber.Ctx) error { + // STUB + + return c.SendString("admin index") +} + +func AdminAddBoard(c *fiber.Ctx) error { + // STUB + + return c.SendString("admin add board") +} + +func AdminPostNews(c *fiber.Ctx) error { + // STUB + + return c.SendString("admin post news") +} + +func AdminNewsDelete(c *fiber.Ctx) error { + // STUB + + return c.SendString("admin news delete") +} -- cgit v1.2.3