aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web/WebServer.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-07 10:31:56 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-07 10:31:56 +1300
commite5b44532710862eb404563c4e83d104be4b2680b (patch)
treeaf362322557a01e0541664d1e0617cb00850a136 /src/org/traccar/web/WebServer.java
parent5b57c0fdb81bae87ca487e1d0087f8927b3fd07f (diff)
downloadtrackermap-server-e5b44532710862eb404563c4e83d104be4b2680b.tar.gz
trackermap-server-e5b44532710862eb404563c4e83d104be4b2680b.tar.bz2
trackermap-server-e5b44532710862eb404563c4e83d104be4b2680b.zip
Implement command REST resource
Diffstat (limited to 'src/org/traccar/web/WebServer.java')
-rw-r--r--src/org/traccar/web/WebServer.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/web/WebServer.java b/src/org/traccar/web/WebServer.java
index 4e451af6e..c9bee7479 100644
--- a/src/org/traccar/web/WebServer.java
+++ b/src/org/traccar/web/WebServer.java
@@ -36,6 +36,7 @@ import org.traccar.Config;
import org.traccar.api.CorsResponseFilter;
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.PositionResource;
import org.traccar.api.resource.ServerResource;
@@ -127,7 +128,7 @@ public class WebServer {
resourceConfig.register(ResourceErrorHandler.class);
resourceConfig.register(SecurityRequestFilter.class);
resourceConfig.register(CorsResponseFilter.class);
- resourceConfig.registerClasses(ServerResource.class, SessionResource.class,
+ resourceConfig.registerClasses(ServerResource.class, SessionResource.class, CommandResource.class,
DeviceResource.class, UserResource.class, PositionResource.class);
servletHandler.addServlet(new ServletHolder(new ServletContainer(resourceConfig)), "/rest/*");
}