Skip to content
Permalink
Browse files

feature/11 Swagger UI added.

  • Loading branch information
little-pinecone committed Feb 18, 2019
1 parent d93912f commit 885c41d3b4e15ddf4a85ef4abc58752af72825cc
Showing with 10 additions and 0 deletions.
  1. +5 −0 backend/pom.xml
  2. +5 −0 backend/src/main/java/in/keepgrowing/scrumally/config/MvcConfiguration.java
@@ -57,6 +57,11 @@
<artifactId>springfox-swagger2</artifactId>
<version>2.9.2</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.9.2</version>
</dependency>

<dependency>
<groupId>in.keepgrowing</groupId>
@@ -26,5 +26,10 @@ protected Resource getResource(String resourcePath, Resource location) throws IO
: new ClassPathResource("/static/index.html");
}
});
registry.addResourceHandler("swagger-ui.html")
.addResourceLocations("classpath:/META-INF/resources/");

registry.addResourceHandler("/webjars/**")
.addResourceLocations("classpath:/META-INF/resources/webjars/");
}
}

0 comments on commit 885c41d

Please sign in to comment.
You can’t perform that action at this time.