2023-10-26 17:44:54 +03:00
|
|
|
import "reflect-metadata";
|
|
|
|
import { App } from "./core/controllers/app";
|
2023-11-14 20:44:06 +03:00
|
|
|
import { SocketSubscriber } from "./core/controllers/socket_controller";
|
2023-10-27 21:22:48 +03:00
|
|
|
import { Routes } from "./core/interfaces/router";
|
2023-10-26 17:44:54 +03:00
|
|
|
import { TriggerPresentation } from "./features/triggers/triggers_presentation";
|
|
|
|
import { ProjectsPresentation } from "./features/projects/projects_presentation";
|
2023-10-27 21:22:48 +03:00
|
|
|
import { PipelinePresentation } from "./features/pipelines/pipeline_presentation";
|
|
|
|
import { ProcessPresentation } from "./features/process/process_presentation";
|
2023-11-28 18:34:41 +03:00
|
|
|
import { RealTimePresentation, pipelineRealTimeService } from "./features/realtime/realtime_presentation";
|
2023-11-20 00:48:40 +03:00
|
|
|
import { extensions } from "./core/extensions/extensions";
|
|
|
|
import { ProjectInstancePresentation } from "./features/project_instance/project_instance_presentation";
|
2023-12-19 11:54:47 +03:00
|
|
|
import { NixStoreManagerPresentation } from "./features/nix_store_manager/nix_store_manager";
|
2023-11-28 18:34:41 +03:00
|
|
|
|
2023-11-20 00:48:40 +03:00
|
|
|
extensions();
|
|
|
|
|
2023-12-19 11:54:47 +03:00
|
|
|
export const httpRoutes: Routes[] = [
|
2023-10-26 17:44:54 +03:00
|
|
|
new TriggerPresentation(),
|
|
|
|
new ProjectsPresentation(),
|
2023-10-27 21:22:48 +03:00
|
|
|
new ProcessPresentation(),
|
|
|
|
new PipelinePresentation(),
|
2023-11-10 12:06:40 +03:00
|
|
|
new RealTimePresentation(),
|
2023-11-20 00:48:40 +03:00
|
|
|
new ProjectInstancePresentation(),
|
2023-12-14 23:04:45 +03:00
|
|
|
new NixStoreManagerPresentation(),
|
2023-10-26 17:44:54 +03:00
|
|
|
].map((el) => el.call());
|
|
|
|
|
2023-11-28 18:34:41 +03:00
|
|
|
const socketSubscribers = [new SocketSubscriber(pipelineRealTimeService, "realtime")];
|
2023-10-26 17:44:54 +03:00
|
|
|
|
2023-11-10 12:06:40 +03:00
|
|
|
new App(httpRoutes, socketSubscribers).listen();
|