aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/http/WebServer.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-01 12:25:33 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-01 12:25:33 +1200
commitc91259f62618358ccf662a5d883f70df79ecbe65 (patch)
tree27a22a5f76826ce949ada40a35841fecd85a0ce4 /src/org/traccar/http/WebServer.java
parentb2ccb23a541d5d927696385bdf96beb7f99348b2 (diff)
downloadtrackermap-server-c91259f62618358ccf662a5d883f70df79ecbe65.tar.gz
trackermap-server-c91259f62618358ccf662a5d883f70df79ecbe65.tar.bz2
trackermap-server-c91259f62618358ccf662a5d883f70df79ecbe65.zip
Add servlet for server settings
Diffstat (limited to 'src/org/traccar/http/WebServer.java')
-rw-r--r--src/org/traccar/http/WebServer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/http/WebServer.java b/src/org/traccar/http/WebServer.java
index 4a7b029e1..c6dd6e04d 100644
--- a/src/org/traccar/http/WebServer.java
+++ b/src/org/traccar/http/WebServer.java
@@ -18,7 +18,6 @@ package org.traccar.http;
import java.net.InetSocketAddress;
import java.util.Properties;
import javax.naming.InitialContext;
-
import org.eclipse.jetty.server.Handler;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.handler.ContextHandler;
@@ -53,6 +52,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()), "/server/*");
servletHandler.addServlet(new ServletHolder(new DeviceServlet()), "/device/*");
servletHandler.addServlet(new ServletHolder(new PositionServlet()), "/position/*");
servletHandler.addServlet(new ServletHolder(new MainServlet()), "/*");