Skip to content

Commit

Permalink
fixes #107 add favicon and robots.txt (disallow all)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 committed Oct 13, 2017
1 parent 6ca5185 commit 32815ab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/faforever/api/config/MvcConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ public void addViewControllers(ViewControllerRegistry registry) {
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("swagger-ui.html").addResourceLocations("classpath:/META-INF/resources/");
registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");
registry.addResourceHandler("/favicon.ico").addResourceLocations("/");
registry.addResourceHandler("/robots.txt").addResourceLocations("/");
}
}
Binary file added src/main/webapp/favicon.ico
Binary file not shown.
2 changes: 2 additions & 0 deletions src/main/webapp/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /

0 comments on commit 32815ab

Please sign in to comment.