preparing document module
This commit is contained in:
@@ -13,6 +13,7 @@ application{
|
||||
|
||||
dependencies{
|
||||
implementation(project(":core"))
|
||||
implementation(project(":documents"))
|
||||
implementation(project(":legacy"))
|
||||
implementation(project(":messages"))
|
||||
implementation(project(":translations"))
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user