From 912670541adf971d5031f665a954ad83137ee5ff Mon Sep 17 00:00:00 2001 From: Laptop Date: Sun, 22 Dec 2024 10:57:56 +0200 Subject: [PATCH] redirect /stream and /feed to main page --- main.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/main.go b/main.go index f481974..ca75df9 100644 --- a/main.go +++ b/main.go @@ -106,6 +106,16 @@ func main() { return c.SendStatus(404) }) + // someone is trying to hit those endpoints on sc.maid.zone at like 4am lol + // those are authentication-only, planning to make something similar later on + app.Get("/stream", func(c *fiber.Ctx) error { + return c.Redirect("/") + }) + + app.Get("/feed", func(c *fiber.Ctx) error { + return c.Redirect("/") + }) + app.Get("/on/:id", func(c *fiber.Ctx) error { id := c.Params("id") if id == "" {