tenant fixes
This commit is contained in:
@@ -8,6 +8,7 @@ using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Routing;
|
||||
using StellaOps.ReleaseOrchestrator.PolicyGate.Models;
|
||||
using StellaOps.ReleaseOrchestrator.PolicyGate.Services;
|
||||
using StellaOps.Auth.ServerIntegration.Tenancy;
|
||||
|
||||
namespace StellaOps.ReleaseOrchestrator.PolicyGate.Endpoints;
|
||||
|
||||
@@ -22,7 +23,8 @@ public static class PolicyGateEndpoints
|
||||
public static RouteGroupBuilder MapPolicyGateEndpoints(this IEndpointRouteBuilder app)
|
||||
{
|
||||
var group = app.MapGroup("/api/v1/policy-gates")
|
||||
.WithTags("Policy Gates");
|
||||
.WithTags("Policy Gates")
|
||||
.RequireTenant();
|
||||
|
||||
// Profile endpoints
|
||||
group.MapGet("profiles", ListProfiles)
|
||||
|
||||
Reference in New Issue
Block a user