implemented legacy interface for Notes and Project

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-08-13 15:36:32 +02:00
parent 65701dee74
commit 89758f6c21
4 changed files with 103 additions and 9 deletions

View File

@@ -16,6 +16,7 @@ import de.srsoftware.umbrella.core.exceptions.UmbrellaException;
import de.srsoftware.umbrella.documents.DocumentApi;
import de.srsoftware.umbrella.items.ItemApi;
import de.srsoftware.umbrella.legacy.NotesLegacy;
import de.srsoftware.umbrella.legacy.ProjectLegacy;
import de.srsoftware.umbrella.legacy.UserLegacy;
import de.srsoftware.umbrella.markdown.MarkdownApi;
import de.srsoftware.umbrella.message.MessageSystem;
@@ -75,6 +76,7 @@ public class Application {
var markdownApi = new MarkdownApi(registry);
var notesModule = new NoteModule(registry,config);
var projectModule = new ProjectModule(registry, config);
var projectLegacy = new ProjectLegacy(registry,config);
var taskModule = new TaskModule(registry, config);
var timeModule = new TimeModule(registry, config);
var webHandler = new WebHandler();
@@ -92,6 +94,7 @@ public class Application {
translationModule.bindPath("/api/translations").on(server);
userModule .bindPath("/api/user") .on(server);
notesLegacy .bindPath("/legacy/notes") .on(server);
projectLegacy .bindPath("/legacy/project") .on(server);
userLegacy .bindPath("/legacy/user") .on(server);
webHandler .bindPath("/") .on(server);