Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
fix: swagger base url
Browse files Browse the repository at this point in the history
  • Loading branch information
MuriloKakazu committed Oct 1, 2024
1 parent 83463fa commit b25f231
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package br.com.fiap.grupo30.fastfood.infrastructure.configuration;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.filter.ForwardedHeaderFilter;

@Configuration
public class ForwardedHeaderFilterConfig {

@Bean
ForwardedHeaderFilter forwardedHeaderFilter() {
return new ForwardedHeaderFilter();
}
}
4 changes: 1 addition & 3 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@ spring.jpa.open-in-view=false
# SWAGGER-UI CUSTOM PATH
springdoc.swagger-ui.path=/swagger-ui.html
springdoc.swagger-ui.tagsSorter=alpha
springdoc.swagger-ui.operationsSorter=alpha

springdoc.api-docs.path=/test/v3/api-docs/swagger-config
springdoc.swagger-ui.operationsSorter=alpha

0 comments on commit b25f231

Please sign in to comment.