feat: phone validate
This commit is contained in:
@@ -16,6 +16,16 @@ func (f *Middlewares) AuthFrontend(ctx fiber.Ctx) error {
|
||||
return ctx.Next()
|
||||
}
|
||||
|
||||
if ctx.Path() == "/v1/posts" {
|
||||
return ctx.Next()
|
||||
}
|
||||
if strings.HasPrefix(ctx.Path(), "/v1/posts/") && strings.HasSuffix(ctx.Path(), "show") {
|
||||
return ctx.Next()
|
||||
}
|
||||
if strings.HasPrefix(ctx.Path(), "/v1/posts/") && strings.HasSuffix(ctx.Path(), "play") {
|
||||
return ctx.Next()
|
||||
}
|
||||
|
||||
if f.app.IsDevMode() && false {
|
||||
user, err := services.Users.FindByID(ctx.Context(), 1001)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user