feat: enforce tenant route isolation
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user