diff --git a/rest/index.php b/rest/index.php index 76dd3b77b92e9c8f2763b9ca4b033aed19bfeb6d..4b9137c5f101bd57fff9755c52aec2db7412bde0 100755 --- a/rest/index.php +++ b/rest/index.php @@ -214,7 +214,7 @@ $app->get('/listTemplates/types/{typeId}/roles', \Entity\controllers\ListTemplat $app->put('/listTemplates/types/{typeId}/roles', \Entity\controllers\ListTemplateController::class . ':updateTypeRoles'); //Notes -$app->get('/notes/templates/resources/{resId}', \Note\controllers\NoteController::class . ':getTemplatesByResId'); +$app->get('/res/{resId}/notes/templates', \Note\controllers\NoteController::class . ':getTemplatesByResId'); $app->get('/notes/templates', \Note\controllers\NoteController::class . ':getTemplates'); $app->get('/res/{resId}/notes', \Note\controllers\NoteController::class . ':getByResId'); $app->post('/res/{resId}/notes', \Note\controllers\NoteController::class . ':create'); diff --git a/src/frontend/app/notes/note-editor.component.ts b/src/frontend/app/notes/note-editor.component.ts index 62101ba37a2b7f24d6358a318ba3a418328d55ce..5ce5be6c10bfdf9a3b6a4d0bf8e5d089cc132233 100644 --- a/src/frontend/app/notes/note-editor.component.ts +++ b/src/frontend/app/notes/note-editor.component.ts @@ -50,7 +50,7 @@ export class NoteEditorComponent implements AfterViewInit { getTemplatesNote() { if (this.templatesNote.length == 0) { if (this.resIds.length == 1) { - this.http.get("../../rest/notes/templates/resources/" + this.resIds[0]) + this.http.get("../../rest/res/" + this.resIds[0] + "/notes/templates") .subscribe((data: any) => { this.templatesNote = data['templates']; });