preparing file service

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-09-26 08:47:22 +02:00
parent ae84a806d1
commit 8dd8a9ed66
10 changed files with 69 additions and 12 deletions

View File

@@ -16,6 +16,7 @@ dependencies{
implementation(project(":contact"))
implementation(project(":core"))
implementation(project(":documents"))
implementation(project(":files"))
implementation(project(":items"))
implementation(project(":legacy"))
implementation(project(":markdown"))

View File

@@ -13,6 +13,7 @@ import de.srsoftware.umbrella.company.CompanyModule;
import de.srsoftware.umbrella.core.Util;
import de.srsoftware.umbrella.core.exceptions.UmbrellaException;
import de.srsoftware.umbrella.documents.DocumentApi;
import de.srsoftware.umbrella.files.FileModule;
import de.srsoftware.umbrella.items.ItemApi;
import de.srsoftware.umbrella.legacy.*;
import de.srsoftware.umbrella.markdown.MarkdownApi;
@@ -79,6 +80,7 @@ public class Application {
new TimeModule(config).bindPath("/api/time").on(server);
new WebHandler().bindPath("/").on(server);
new WikiModule(config).bindPath("/api/wiki").on(server);
new FileModule(config).bindPath("/api/files").on(server);
server.setExecutor(Executors.newFixedThreadPool(threads));
server.start();