33 lines
1.1 KiB
XML
33 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
|
|
version="3.1">
|
|
<welcome-file-list>
|
|
<welcome-file>index.html</welcome-file>
|
|
</welcome-file-list>
|
|
|
|
<!-- All REST resources will be prefixed by /api -->
|
|
<context-param>
|
|
<param-name>resteasy.servlet.mapping.prefix</param-name>
|
|
<param-value>/api</param-value>
|
|
</context-param>
|
|
|
|
<!-- Servlets -->
|
|
<servlet>
|
|
<servlet-name>Resteasy</servlet-name>
|
|
<servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class>
|
|
<init-param>
|
|
<param-name>javax.ws.rs.Application</param-name>
|
|
<param-value>comments.main.CommentsAPIApplication</param-value>
|
|
</init-param>
|
|
</servlet>
|
|
|
|
<!-- Servlet mappings -->
|
|
<!-- All calls to /api/xxx will be sent to the resteasy servlet -->
|
|
<servlet-mapping>
|
|
<servlet-name>Resteasy</servlet-name>
|
|
<url-pattern>/api/*</url-pattern>
|
|
</servlet-mapping>
|
|
|
|
</web-app> |