feat: enforce tenant route isolation

This commit is contained in:
2026-01-13 15:41:32 +08:00
parent 95c14fdd86
commit bd8dab5764
3 changed files with 10 additions and 4 deletions

View File

@@ -1,9 +1,11 @@
package auth
func (r *Routes) Path() string {
return "/v1/auth"
return "/t/:tenantCode/v1/auth"
}
func (r *Routes) Middlewares() []any {
return []any{}
return []any{
r.middlewares.TenantResolver,
}
}