A
A
Alex P.2019-09-30 17:46:51
symfony
Alex P., 2019-09-30 17:46:51

How to set up the swagger-ui-bundle?

There is a project on Symfony.
The project is available at localhost.loc/alias .
For API doc I use this bundle harmbandstra/swagger-ui-bundle
The problem is that an empty page is displayed at localhost.loc/alias/docs, since Symfony looks for JS for this page at localhost.loc/bundles/hbswaggerui /*.js instead of localhost.loc/alias/bundles/hbswaggerui/*.js.
How to set up a bundle so that it searches for JS at localhost.loc/alias/bundles/hbswaggerui/*.js ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex P., 2020-01-22
@Big_Alex

Better late than never...
Got out of the situation by overriding the controller from the bundle...
Link to the dock

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question