diff options
author | Abyss777 <abyss@fox5.ru> | 2016-11-30 15:04:55 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-11-30 15:04:55 +0500 |
commit | c2d479e2acfa4f89b01d80ca902938dc2e37c1b6 (patch) | |
tree | 9a58b8c14df8aebf0952236a4a2a5e91d9621b52 /src/org/traccar/api/resource/NotificationResource.java | |
parent | b6d9d992b3b5eaaa5c7fec33fd63e28480f05d97 (diff) | |
download | trackermap-server-c2d479e2acfa4f89b01d80ca902938dc2e37c1b6.tar.gz trackermap-server-c2d479e2acfa4f89b01d80ca902938dc2e37c1b6.tar.bz2 trackermap-server-c2d479e2acfa4f89b01d80ca902938dc2e37c1b6.zip |
Rename to test and use POST
Diffstat (limited to 'src/org/traccar/api/resource/NotificationResource.java')
-rw-r--r-- | src/org/traccar/api/resource/NotificationResource.java | 6 |
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(); } |