implemented function to return estimated times of company.
Therefore task and project module had to be created and partially implemented
This commit is contained in:
@@ -17,6 +17,8 @@ import de.srsoftware.umbrella.legacy.LegacyApi;
|
||||
import de.srsoftware.umbrella.markdown.MarkdownApi;
|
||||
import de.srsoftware.umbrella.message.MessageApi;
|
||||
import de.srsoftware.umbrella.message.MessageSystem;
|
||||
import de.srsoftware.umbrella.project.ProjectModule;
|
||||
import de.srsoftware.umbrella.task.TaskModule;
|
||||
import de.srsoftware.umbrella.translations.Translations;
|
||||
import de.srsoftware.umbrella.user.UserModule;
|
||||
import de.srsoftware.umbrella.web.WebHandler;
|
||||
@@ -58,16 +60,20 @@ public class Application {
|
||||
var userModule = new UserModule(config,messageSystem);
|
||||
var companyModule = new CompanyModule(config, userModule);
|
||||
var documentApi = new DocumentApi(companyModule, config);
|
||||
var itemApi = new ItemApi(config,userModule);
|
||||
var itemApi = new ItemApi(config,companyModule);
|
||||
var legacyApi = new LegacyApi(userModule.userDb(),config);
|
||||
var markdownApi = new MarkdownApi(userModule);
|
||||
var messageApi = new MessageApi(messageSystem);
|
||||
var projectModule = new ProjectModule(config,companyModule);
|
||||
var taskModule = new TaskModule(config,projectModule);
|
||||
var webHandler = new WebHandler();
|
||||
|
||||
documentApi .bindPath("/api/document") .on(server);
|
||||
itemApi .bindPath("/api/items") .on(server);
|
||||
markdownApi .bindPath("/api/markdown") .on(server);
|
||||
messageApi .bindPath("/api/messages") .on(server);
|
||||
projectModule .bindPath("/api/project") .on(server);
|
||||
taskModule .bindPath("/api/task") .on(server);
|
||||
translationModule.bindPath("/api/translations").on(server);
|
||||
userModule .bindPath("/api/user") .on(server);
|
||||
legacyApi .bindPath("/legacy") .on(server);
|
||||
|
||||
Reference in New Issue
Block a user