mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 07:42:10 +00:00
13 lines
357 B
TypeScript
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;
|