prepared database for bookmark service
This commit is contained in:
@@ -11,6 +11,7 @@ application{
|
||||
}
|
||||
|
||||
dependencies{
|
||||
implementation(project(":bookmark"));
|
||||
implementation(project(":company"))
|
||||
implementation(project(":contact"))
|
||||
implementation(project(":core"))
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user