Merge remote-tracking branch 'origin/main' into feature/web-zavady
This commit is contained in:
commit
1550c0343b
45 files changed
+1516
-169
No files matched your search
@@ -0,0 +1,15 @@
|
||||
using Helpdesk.Web.Api;
|
||||
using Helpdesk.Web.Auth;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Helpdesk.Web.Controllers;
|
||||
|
||||
[Authorize(Roles = UserRoles.Admin)]
|
||||
[ResponseCache(NoStore = true, Location = ResponseCacheLocation.None)]
|
||||
public sealed class SwaggerController(HelpdeskApiClient api) : Controller
|
||||
{
|
||||
[HttpGet("/swagger/v1/swagger.json")]
|
||||
public async Task<IActionResult> Document(CancellationToken ct) =>
|
||||
Content(await api.GetOpenApiAsync(ct), "application/json");
|
||||
}
|
||||
Reference in new issue
Block a user