aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-11-30 15:04:55 +0500
committerAbyss777 <abyss@fox5.ru>2016-11-30 15:04:55 +0500
commitc2d479e2acfa4f89b01d80ca902938dc2e37c1b6 (patch)
tree9a58b8c14df8aebf0952236a4a2a5e91d9621b52
parentb6d9d992b3b5eaaa5c7fec33fd63e28480f05d97 (diff)
downloadtraccar-server-c2d479e2acfa4f89b01d80ca902938dc2e37c1b6.tar.gz
traccar-server-c2d479e2acfa4f89b01d80ca902938dc2e37c1b6.tar.bz2
traccar-server-c2d479e2acfa4f89b01d80ca902938dc2e37c1b6.zip
Rename to test and use POST
-rw-r--r--src/org/traccar/api/resource/NotificationResource.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/api/resource/NotificationResource.java b/src/org/traccar/api/resource/NotificationResource.java
index e89887e92..6c9725f37 100644
--- a/src/org/traccar/api/resource/NotificationResource.java
+++ b/src/org/traccar/api/resource/NotificationResource.java
@@ -60,10 +60,10 @@ public class NotificationResource extends BaseResource {
return Response.ok(entity).build();
}
- @Path("testmail")
- @GET
+ @Path("test")
+ @POST
public Response testMail() throws MessagingException {
- NotificationMail.sendMailSync(getUserId(), new Event("unknown", 0), null);
+ NotificationMail.sendMailSync(getUserId(), new Event("test", 0), null);
return Response.noContent().build();
}