oneuptime/ProbeAPI/Index.ts
Simon Larsen 354def3883
fix lint.
2022-05-31 14:57:15 +01:00

14 lines
353 B
TypeScript

import { ExpressApplication } from 'CommonServer/Utils/Express';
import App from 'CommonServer/Utils/StartServer';
export const APP_NAME: string = 'data-ingestor';
const app: ExpressApplication = App(APP_NAME);
// API
import ProbeAPI from './API/Probe';
// Attach to the app.
app.use([`/${APP_NAME}/probe`, '/probe'], ProbeAPI);
export default app;