aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web/WebServer.java
diff options
context:
space:
mode:
authorHans van den Elsen <hans.elsen@esds.nl>2016-02-09 15:46:11 +0100
committerHans van den Elsen <hans.elsen@esds.nl>2016-02-09 15:46:11 +0100
commit7883c78aef55c73cbfb4213f7720f3e450f89c75 (patch)
tree64b6bd000bfd84c697cab5e8d5d54ac7873b6c74 /src/org/traccar/web/WebServer.java
parenta8c6a98f80858f2e04753086c1877c75f5abcf80 (diff)
downloadtrackermap-server-7883c78aef55c73cbfb4213f7720f3e450f89c75.tar.gz
trackermap-server-7883c78aef55c73cbfb4213f7720f3e450f89c75.tar.bz2
trackermap-server-7883c78aef55c73cbfb4213f7720f3e450f89c75.zip
Added API endpoint for our raw commands
Diffstat (limited to 'src/org/traccar/web/WebServer.java')
-rw-r--r--src/org/traccar/web/WebServer.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/org/traccar/web/WebServer.java b/src/org/traccar/web/WebServer.java
index d6cd19d87..f18e80182 100644
--- a/src/org/traccar/web/WebServer.java
+++ b/src/org/traccar/web/WebServer.java
@@ -40,13 +40,7 @@ import org.traccar.api.CorsResponseFilter;
import org.traccar.api.ObjectMapperProvider;
import org.traccar.api.ResourceErrorHandler;
import org.traccar.api.SecurityRequestFilter;
-import org.traccar.api.resource.CommandResource;
-import org.traccar.api.resource.DeviceResource;
-import org.traccar.api.resource.PermissionResource;
-import org.traccar.api.resource.PositionResource;
-import org.traccar.api.resource.ServerResource;
-import org.traccar.api.resource.SessionResource;
-import org.traccar.api.resource.UserResource;
+import org.traccar.api.resource.*;
import org.traccar.helper.Log;
public class WebServer {
@@ -140,7 +134,8 @@ public class WebServer {
resourceConfig.register(SecurityRequestFilter.class);
resourceConfig.register(CorsResponseFilter.class);
resourceConfig.registerClasses(ServerResource.class, SessionResource.class, CommandResource.class,
- PermissionResource.class, DeviceResource.class, UserResource.class, PositionResource.class);
+ PermissionResource.class, DeviceResource.class, UserResource.class, PositionResource.class,
+ /*sos*/SOSResource.class);
servletHandler.addServlet(new ServletHolder(new ServletContainer(resourceConfig)), "/*");
handlers.addHandler(servletHandler);