aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api/resource/DeviceResource.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/api/resource/DeviceResource.java')
-rw-r--r--src/org/traccar/api/resource/DeviceResource.java7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/org/traccar/api/resource/DeviceResource.java b/src/org/traccar/api/resource/DeviceResource.java
index 90d3ef675..f7494aa6a 100644
--- a/src/org/traccar/api/resource/DeviceResource.java
+++ b/src/org/traccar/api/resource/DeviceResource.java
@@ -87,11 +87,4 @@ public class DeviceResource extends BaseResource {
return Response.noContent().build();
}
- @Path("{id}/supportedcommands")
- @GET
- public Collection<SupportedCommand> get(@PathParam("id") long id) throws SQLException {
- Context.getPermissionsManager().checkDevice(getUserId(), id);
- Position latestPosition = Context.getDataManager().getLatestPosition(id);
- return Context.getServerManager().getProtocolSuppportedCommands(latestPosition.getProtocol());
- }
}