feat: add super admin auth
This commit is contained in:
@@ -35,5 +35,5 @@ func (c *auth) Login(ctx fiber.Ctx, form *dto.LoginForm) (*dto.LoginResponse, er
|
||||
// @Produce json
|
||||
// @Success 200 {object} dto.LoginResponse
|
||||
func (c *auth) CheckToken(ctx fiber.Ctx) (*dto.LoginResponse, error) {
|
||||
return services.Super.CheckToken(ctx)
|
||||
return services.Super.CheckToken(ctx, ctx.Get("Authorization"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user