crud and http controller
This commit is contained in:
parent
cba12be4b1
commit
c27c061c15
51 changed files with 930 additions and 387 deletions
21
server/src/main.ts
Normal file
21
server/src/main.ts
Normal file
|
@ -0,0 +1,21 @@
|
|||
import "reflect-metadata";
|
||||
import { App } from "./core/controllers/app";
|
||||
import { TriggerPresentation } from "./features/triggers/triggers_presentation";
|
||||
import { ProjectsPresentation } from "./features/projects/projects_presentation";
|
||||
import { FunctionsPresentation } from "./features/functions/functions_presentation";
|
||||
import { CompositionPresentation } from "./features/compositions/compositions_presentation";
|
||||
import { Routes } from "./core/interfaces/router";
|
||||
|
||||
import { Container, Service } from 'typedi';
|
||||
|
||||
|
||||
const httpRoutes: Routes[] = [
|
||||
new TriggerPresentation(),
|
||||
new ProjectsPresentation(),
|
||||
new FunctionsPresentation(),
|
||||
new CompositionPresentation(),
|
||||
].map((el) => el.call());
|
||||
|
||||
const computedFolder = "";
|
||||
|
||||
new App(httpRoutes, computedFolder).listen();
|
Loading…
Add table
Add a link
Reference in a new issue