From 75a86394ec26725cf9460d336c03a3f55a82d599 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Sun, 23 Oct 2016 06:36:44 +0500 Subject: Rename API path --- src/org/traccar/api/resource/DeviceResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar/api/resource') diff --git a/src/org/traccar/api/resource/DeviceResource.java b/src/org/traccar/api/resource/DeviceResource.java index 449083cb1..1f65fa041 100644 --- a/src/org/traccar/api/resource/DeviceResource.java +++ b/src/org/traccar/api/resource/DeviceResource.java @@ -93,7 +93,7 @@ public class DeviceResource extends BaseResource { return Response.noContent().build(); } - @Path("{id}/totaldistance") + @Path("{id}/distance") @PUT public Response updateTotalDistance(@PathParam("id") long id, DeviceTotalDistance entity) throws SQLException { Context.getPermissionsManager().checkAdmin(getUserId()); -- cgit v1.2.3