forked from Onlineberatung/onlineberatung-liveService
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix:VIC-1891 Fix Swagger UI after CVEs fixes
- Loading branch information
idriss.naji
committed
Nov 10, 2022
1 parent
61465b1
commit 0584625
Showing
7 changed files
with
32 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...in/java/de/caritas/cob/liveservice/api/controller/CustomSwaggerApiResourceController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package de.caritas.cob.liveservice.api.controller; | ||
|
||
import org.springframework.stereotype.Controller; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import springfox.documentation.annotations.ApiIgnore; | ||
import springfox.documentation.swagger.web.ApiResourceController; | ||
import springfox.documentation.swagger.web.SwaggerResourcesProvider; | ||
|
||
@Controller | ||
@ApiIgnore | ||
@RequestMapping(value = "${springfox.docuPath}" + "/swagger-resources") | ||
public class CustomSwaggerApiResourceController extends ApiResourceController { | ||
|
||
public static final String SWAGGER_UI_BASE_URL = "/liveevent/docs"; | ||
|
||
public CustomSwaggerApiResourceController(SwaggerResourcesProvider swaggerResources) { | ||
super(swaggerResources, SWAGGER_UI_BASE_URL); | ||
} | ||
|
||
} |
19 changes: 0 additions & 19 deletions
19
src/main/java/de/caritas/cob/liveservice/api/controller/CustomSwaggerController.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters