feat: update post detail page
This commit is contained in:
@@ -19,6 +19,13 @@ func (f *Middlewares) Auth(ctx fiber.Ctx) error {
|
||||
return ctx.Next()
|
||||
}
|
||||
|
||||
uu, err := models.Users.GetByID(ctx.Context(), 1)
|
||||
if err != nil {
|
||||
return ctx.SendString("NOT OK")
|
||||
}
|
||||
ctx.Locals("user", uu)
|
||||
return ctx.Next()
|
||||
|
||||
fullUrl := string(ctx.Request().URI().FullURI())
|
||||
u, err := url.Parse(fullUrl)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user