aboutsummaryrefslogtreecommitdiff
path: root/route/routes/api.go
diff options
context:
space:
mode:
authorFChannel <>2022-06-04 15:34:45 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commit5ee6d0a7bb85d7f28fe4f838150c17ecb6a9d1b7 (patch)
tree34eb764abc6c5a1a8dbcaa17c2c3e94e782003c0 /route/routes/api.go
parent0b97866be3a15f64170673af9813b39cbc585db5 (diff)
last few routes marked TODO
should be done with them this weekend and all things `should` be working for the fiber transition. still have to test federation locally
Diffstat (limited to 'route/routes/api.go')
-rw-r--r--route/routes/api.go8
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 {