mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 15:24:55 +00:00
15 lines
409 B
TypeScript
15 lines
409 B
TypeScript
import version from './VersionAPI';
|
|
import status from './StatusAPI';
|
|
import Express, { ExpressApplication } from '../Utils/Express';
|
|
|
|
const app: ExpressApplication = Express.getExpressApp();
|
|
|
|
type InitFunction = (appName: string) => void;
|
|
|
|
const init: InitFunction = (appName: string): void => {
|
|
app.use([`/${appName}`, '/'], version);
|
|
app.use([`/${appName}`, '/'], status);
|
|
};
|
|
|
|
export default init;
|