preparing document module

This commit is contained in:
2025-07-08 22:20:00 +02:00
parent e6e3ed4052
commit a11f2f0718
12 changed files with 82 additions and 8 deletions

View File

@@ -13,6 +13,7 @@ application{
dependencies{
implementation(project(":core"))
implementation(project(":documents"))
implementation(project(":legacy"))
implementation(project(":messages"))
implementation(project(":translations"))

View File

@@ -10,6 +10,7 @@ import de.srsoftware.configuration.JsonConfig;
import de.srsoftware.tools.ColorLogger;
import de.srsoftware.umbrella.core.ConnectionProvider;
import de.srsoftware.umbrella.core.UmbrellaException;
import de.srsoftware.umbrella.documents.DocumentApi;
import de.srsoftware.umbrella.legacy.LegacyApi;
import de.srsoftware.umbrella.message.MessageApi;
import de.srsoftware.umbrella.message.MessageSystem;
@@ -59,8 +60,8 @@ public class Application {
var server = HttpServer.create(new InetSocketAddress(port), 0);
server.setExecutor(Executors.newFixedThreadPool(threads));
new LegacyApi(userDb,config).bindPath("/legacy").on(server);
new DocumentApi().bindPath("/api/document").on(server);
new MessageApi(messageSystem).bindPath("/api/messages").on(server);
translationModule.bindPath("/api/translations").on(server);
new UserModule(userDb,loginServiceDb,messageSystem).bindPath("/api/user").on(server);