aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-07 10:44:16 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-07 10:44:16 +1300
commit8ce214876cb4c55c242e46fb004adeca16d3b23b (patch)
treead3ad3a51ca476da3517fb62cfbc8f7d4ca8b7f1 /src/org/traccar/web
parente5b44532710862eb404563c4e83d104be4b2680b (diff)
downloadtrackermap-server-8ce214876cb4c55c242e46fb004adeca16d3b23b.tar.gz
trackermap-server-8ce214876cb4c55c242e46fb004adeca16d3b23b.tar.bz2
trackermap-server-8ce214876cb4c55c242e46fb004adeca16d3b23b.zip
Implement device permissions REST API
Diffstat (limited to 'src/org/traccar/web')
-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 c9bee7479..e7c0057e4 100644
--- a/src/org/traccar/web/WebServer.java
+++ b/src/org/traccar/web/WebServer.java
@@ -38,6 +38,7 @@ 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;
@@ -129,7 +130,7 @@ public class WebServer {
resourceConfig.register(SecurityRequestFilter.class);
resourceConfig.register(CorsResponseFilter.class);
resourceConfig.registerClasses(ServerResource.class, SessionResource.class, CommandResource.class,
- DeviceResource.class, UserResource.class, PositionResource.class);
+ PermissionResource.class, DeviceResource.class, UserResource.class, PositionResource.class);
servletHandler.addServlet(new ServletHolder(new ServletContainer(resourceConfig)), "/rest/*");
}
servletHandler.addServlet(new ServletHolder(new AsyncServlet()), "/async/*");