File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 11package routes
22
33import (
4- "encoding/json"
54 "fmt"
6- "skycrypt/src/constants"
7- redis "skycrypt/src/db"
8- "skycrypt/src/models"
95 "time"
106
117 "github.com/gofiber/fiber/v2"
@@ -15,7 +11,7 @@ func EmbedHandler(c *fiber.Ctx) error {
1511 timeNow := time .Now ()
1612
1713 uuid := c .Params ("uuid" )
18- profileId := c .Params ("profileId" )
14+ /* profileId := c.Params("profileId")
1915 embed, err := redis.Get(fmt.Sprintf("embed:%s:%s", uuid, profileId))
2016 if err != nil {
2117 c.Status(400)
@@ -26,11 +22,11 @@ func EmbedHandler(c *fiber.Ctx) error {
2622 if err := json.Unmarshal([]byte(embed), &embedData); err != nil {
2723 c.Status(500)
2824 return c.JSON(constants.InternalServerError)
29- }
25+ }*/
3026
3127 fmt .Printf ("Returning /api/embed/%s in %s\n " , profileId , time .Since (timeNow ))
3228
3329 return c .JSON (fiber.Map {
34- "embed" : embedData ,
30+ "embed" : uuid ,
3531 })
3632}
You can’t perform that action at this time.
0 commit comments