Skip to content

Commit

Permalink
change servlet mapping to match API version (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
gibarsin committed Jan 24, 2017
1 parent 4449176 commit d36e200
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions webapp/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,9 @@
<load-on-startup>1</load-on-startup>
</servlet>

<!-- Map all requests for / to the dispatcher servlet -->
<!-- Map all requests for /api/v{version number goes here} to the dispatcher servlet -->
<servlet-mapping>
<servlet-name>jersey-servlet</servlet-name>
<url-pattern>/*</url-pattern>
<url-pattern>/api/v1/*</url-pattern>
</servlet-mapping>

<!-- Error mapping -->
<error-page>
<error-code>404</error-code>
<location>/errors/404</location>
</error-page>

</web-app>

0 comments on commit d36e200

Please sign in to comment.