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/actor.go | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 routes/actor.go (limited to 'routes/actor.go') diff --git a/routes/actor.go b/routes/actor.go new file mode 100644 index 0000000..7fc9cb5 --- /dev/null +++ b/routes/actor.go @@ -0,0 +1,57 @@ +package routes + +import "github.com/gofiber/fiber/v2" + +func ActorIndex(c *fiber.Ctx) error { + // STUB + // TODO: OutboxGet, already implemented + return c.SendString("actor index") +} + +func ActorPostGet(c *fiber.Ctx) error { + // STUB + // TODO: PostGet + return c.SendString("actor post") +} + +func ActorInbox(c *fiber.Ctx) error { + // STUB + + return c.SendString("actor inbox") +} + +func ActorOutbox(c *fiber.Ctx) error { + // STUB + + return c.SendString("actor outbox") +} + +func ActorFollowing(c *fiber.Ctx) error { + // STUB + + return c.SendString("actor following") +} + +func ActorFollowers(c *fiber.Ctx) error { + // STUB + + return c.SendString("actor followers") +} + +func ActorReported(c *fiber.Ctx) error { + // STUB + + return c.SendString("actor reported") +} + +func ActorArchive(c *fiber.Ctx) error { + // STUB + + return c.SendString("actor archive") +} + +func ActorPost(c *fiber.Ctx) error { + // STUB + + return c.SendString("actor post") +} -- cgit v1.2.3