Skip to content

Commit

Permalink
Re-add openapi endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
santiagolizardo committed Nov 7, 2024
1 parent 5660533 commit 420ed75
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/ApiRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
Controllers\Projects\ProjectsRouter,
Controllers\Reports\ReportsRouter,
Controllers\System\CustomFields\CustomFieldsRouter,
Controllers\System\GetOpenApiYamlController,
Controllers\System\SystemRouter,
Controllers\Targets\TargetsRouter,
Controllers\Tasks\TasksRouter,
Expand Down Expand Up @@ -83,6 +84,7 @@ public function mapRoutes(ContainerInterface $container, ApplicationConfig $appl
$securityMiddleware = $container->get(SecurityMiddleware::class);
$cookieMiddleware = $container->get(StaticMiddleware::class);

$this->map('GET', '/openapi.json', GetOpenApiYamlController::class);
$this->map('GET', '/image/{attachmentId:number}', ServeAttachmentController::class)->middlewares([$cookieMiddleware]);

$this->group('', function (RouteGroup $router): void {
Expand Down

0 comments on commit 420ed75

Please sign in to comment.