webstudio/server/src/main.ts

22 lines
769 B
TypeScript
Raw Normal View History

2023-10-26 17:44:54 +03:00
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();