fix: excluir /api/sms/send del middleware AuthApi
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
cb9d984ee8
commit
d95e82034a
@@ -263,7 +263,7 @@ func AuthAdmin(c *fiber.Ctx) error {
|
||||
func AuthApi() func(*fiber.Ctx) error {
|
||||
return func(c *fiber.Ctx) error {
|
||||
// Excluir rutas públicas
|
||||
if c.Path() == "/api/v1/oauth/token" {
|
||||
if c.Path() == "/api/v1/oauth/token" || c.Path() == "/api/sms/send" {
|
||||
return c.Next()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user