diff options
Diffstat (limited to 'route/routes/api.go')
-rw-r--r-- | route/routes/api.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/route/routes/api.go b/route/routes/api.go index 080d88d..49c2623 100644 --- a/route/routes/api.go +++ b/route/routes/api.go @@ -10,12 +10,12 @@ import ( "github.com/gofiber/fiber/v2" ) -func Media(c *fiber.Ctx) error { - if c.Query("hash") != "" { - return RouteImages(c, c.Query("hash")) +func Media(ctx *fiber.Ctx) error { + if ctx.Query("hash") != "" { + return RouteImages(ctx, ctx.Query("hash")) } - return c.SendStatus(404) + return ctx.SendStatus(404) } func RouteImages(ctx *fiber.Ctx, media string) error { |