diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-04-30 16:48:17 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-04-30 16:48:17 +1200 |
commit | fceecda9e32313916ab8695192c6e12bb59bd717 (patch) | |
tree | 8960cc3617b41dece440a8a8a390f422ab1b52ac /src/org/traccar/http/WebServer.java | |
parent | 6c3367bc3fb2e60e9a9a48e419907a3e49ba07e6 (diff) | |
download | trackermap-server-fceecda9e32313916ab8695192c6e12bb59bd717.tar.gz trackermap-server-fceecda9e32313916ab8695192c6e12bb59bd717.tar.bz2 trackermap-server-fceecda9e32313916ab8695192c6e12bb59bd717.zip |
Separate async API servlet
Diffstat (limited to 'src/org/traccar/http/WebServer.java')
-rw-r--r-- | src/org/traccar/http/WebServer.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/traccar/http/WebServer.java b/src/org/traccar/http/WebServer.java index 50ee60d04..15c8527e8 100644 --- a/src/org/traccar/http/WebServer.java +++ b/src/org/traccar/http/WebServer.java @@ -51,6 +51,7 @@ public class WebServer { ServletContextHandler servletHandler = new ServletContextHandler(ServletContextHandler.SESSIONS); servletHandler.setContextPath("/api"); + servletHandler.addServlet(new ServletHolder(new AsyncServlet()), "/async/*"); servletHandler.addServlet(new ServletHolder(new DeviceServlet()), "/device/*"); servletHandler.addServlet(new ServletHolder(new MainServlet()), "/*"); |