Merge branch 'doc-for-all-fix' into 'dev'
Added all paths to swagger documentation See merge request sa4-2020/the-sanmarinoes/backend!29
This commit is contained in:
commit
507f523991
1 changed files with 2 additions and 4 deletions
|
@ -8,6 +8,7 @@ import org.springframework.context.annotation.Bean;
|
|||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import springfox.documentation.builders.ApiInfoBuilder;
|
||||
import springfox.documentation.builders.PathSelectors;
|
||||
import springfox.documentation.builders.RequestHandlerSelectors;
|
||||
import springfox.documentation.service.ApiInfo;
|
||||
import springfox.documentation.service.ApiKey;
|
||||
|
@ -67,10 +68,7 @@ public class SpringFoxConfig {
|
|||
* @return A predicate that tests whether a path must be included or not
|
||||
*/
|
||||
private Predicate<String> paths() {
|
||||
return regexPredicate("/auth.*")
|
||||
.or(regexPredicate("/room.*"))
|
||||
.or(regexPredicate("/register.*"))
|
||||
.or(regexPredicate("/"));
|
||||
return PathSelectors.any()::apply;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue