crud and http controller

This commit is contained in:
IDONTSUDO 2023-10-26 17:44:54 +03:00
parent cba12be4b1
commit c27c061c15
51 changed files with 930 additions and 387 deletions

21
server/src/main.ts Normal file
View 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();