Skip to content

Commit

Permalink
Change swagger action class (#591)
Browse files Browse the repository at this point in the history
* Add cors for swagger

* Use new action instead of middleware
  • Loading branch information
xepozz authored Nov 2, 2024
1 parent 697842d commit 486e8b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blog-api/config/common/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Yiisoft\Router\Group;
use Yiisoft\Router\Route;
use Yiisoft\Router\UrlGeneratorInterface;
use Yiisoft\Swagger\Middleware\SwaggerJson;
use Yiisoft\Swagger\Action\SwaggerJson;
use Yiisoft\Swagger\Middleware\SwaggerUi;
use Yiisoft\Yii\Middleware\CorsAllowAll;

Expand Down
2 changes: 1 addition & 1 deletion blog/config/common/routes/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
use Yiisoft\Router\Group;
use Yiisoft\Router\Route;
use Yiisoft\Router\UrlGeneratorInterface;
use Yiisoft\Swagger\Middleware\SwaggerJson;
use Yiisoft\Swagger\Action\SwaggerJson;
use Yiisoft\Swagger\Middleware\SwaggerUi;
use Yiisoft\Yii\Middleware\CorsAllowAll;
use Yiisoft\Yii\Middleware\HttpCache;
Expand Down

0 comments on commit 486e8b9

Please sign in to comment.