Added all paths to swagger documentation
This commit is contained in:
parent
4fa55e364c
commit
dfdf9ba361
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.ComponentScan;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import springfox.documentation.builders.ApiInfoBuilder;
|
import springfox.documentation.builders.ApiInfoBuilder;
|
||||||
|
import springfox.documentation.builders.PathSelectors;
|
||||||
import springfox.documentation.builders.RequestHandlerSelectors;
|
import springfox.documentation.builders.RequestHandlerSelectors;
|
||||||
import springfox.documentation.service.ApiInfo;
|
import springfox.documentation.service.ApiInfo;
|
||||||
import springfox.documentation.service.ApiKey;
|
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
|
* @return A predicate that tests whether a path must be included or not
|
||||||
*/
|
*/
|
||||||
private Predicate<String> paths() {
|
private Predicate<String> paths() {
|
||||||
return regexPredicate("/auth.*")
|
return PathSelectors.any()::apply;
|
||||||
.or(regexPredicate("/room.*"))
|
|
||||||
.or(regexPredicate("/register.*"))
|
|
||||||
.or(regexPredicate("/"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue