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

13 lines
357 B
TypeScript

import version from './VersionAPI';
import status from './StatusAPI';
import Express, { ExpressApplication } from '../Utils/Express';
const app: ExpressApplication = Express.getExpressApp();
const init: Function = (appName: string): void => {
app.use([`/${appName}`, '/'], version);
app.use([`/${appName}`, '/'], status);
};
export default init;