feat: add admin login
This commit is contained in:
@@ -11,7 +11,11 @@ import (
|
||||
)
|
||||
|
||||
func (f *Middlewares) Auth(ctx fiber.Ctx) error {
|
||||
if strings.HasPrefix(ctx.Path(), "/admin/") {
|
||||
if ctx.Path() == "/v1/admin/auth" {
|
||||
return ctx.Next()
|
||||
}
|
||||
|
||||
if strings.HasPrefix(ctx.Path(), "/v1/admin/") {
|
||||
return ctx.Next()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user