diff --git a/src/main/java/fr/ippon/jhipster/bpm/web/rest/BPMResource.java b/src/main/java/fr/ippon/jhipster/bpm/web/rest/BPMResource.java index 124dbccbe02e1dc3d21079642bf02f9448974d6a..b9b70f6cc64b47e3e8b513b167344c1c120747e7 100644 --- a/src/main/java/fr/ippon/jhipster/bpm/web/rest/BPMResource.java +++ b/src/main/java/fr/ippon/jhipster/bpm/web/rest/BPMResource.java @@ -22,7 +22,7 @@ public class BPMResource { this.runtimeService = runtimeService; } - @PostMapping("/signal") + @PostMapping("/signals") @Timed public ResponseEntity<Void> sendSignal(@RequestBody String signal) { SignalEventReceivedBuilder signalEvent = runtimeService.createSignalEvent(signal); diff --git a/src/main/webapp/app/shared/bpm/bpm.service.ts b/src/main/webapp/app/shared/bpm/bpm.service.ts index 117cbb6442200c9f5cc9b87f41aca2ef5cafdacb..8179352aaf8eb85b1639bdc229f69f6d44953320 100644 --- a/src/main/webapp/app/shared/bpm/bpm.service.ts +++ b/src/main/webapp/app/shared/bpm/bpm.service.ts @@ -12,7 +12,7 @@ export class BpmService { constructor(private http: Http) { } sendSignal(signalName: string): Observable<Response> { - return this.http.post(`${this.resourceUrl}/signal/`, signalName); + return this.http.post(`${this.resourceUrl}/signals/`, signalName); } private convertResponse(res: Response): ResponseWrapper {