prepared database for bookmark service

This commit is contained in:
2025-08-02 20:28:56 +02:00
parent fd107546d8
commit 125a8c2266
11 changed files with 118 additions and 21 deletions

View File

@@ -11,6 +11,7 @@ application{
}
dependencies{
implementation(project(":bookmark"));
implementation(project(":company"))
implementation(project(":contact"))
implementation(project(":core"))

View File

@@ -8,6 +8,7 @@ import static java.lang.System.Logger.Level.INFO;
import com.sun.net.httpserver.HttpServer;
import de.srsoftware.configuration.JsonConfig;
import de.srsoftware.tools.ColorLogger;
import de.srsoftware.umbrella.bookmarks.BookmarkApi;
import de.srsoftware.umbrella.company.CompanyModule;
import de.srsoftware.umbrella.core.Util;
import de.srsoftware.umbrella.core.exceptions.UmbrellaException;
@@ -61,6 +62,7 @@ public class Application {
var server = HttpServer.create(new InetSocketAddress(port), 0);
var userModule = new UserModule(config,messageSystem);
var bookmarkApi = new BookmarkApi(config,userModule);
var companyModule = new CompanyModule(config, userModule);
var documentApi = new DocumentApi(companyModule, translationModule, config);
var itemApi = new ItemApi(config,companyModule);
@@ -74,6 +76,7 @@ public class Application {
var timeModule = new TimeModule(config,taskModule);
var webHandler = new WebHandler();
bookmarkApi .bindPath("/api/bookmark") .on(server);
documentApi .bindPath("/api/document") .on(server);
companyModule .bindPath("/api/company") .on(server);
itemApi .bindPath("/api/items") .on(server);