aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();
}