oneuptime/HelmChart/index.ts
Nawaz Dhandala 8f65af37c5
rename
2022-04-10 22:57:14 +01:00

17 lines
409 B
TypeScript

import { ExpressStatic } from 'Common-server/Utils/Express';
import app from 'Common-server/utils/StartServer';
import path from 'path';
// set the view engine to ejs
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'ejs');
//serve files in public directory
app.use(
['/chart', '/'],
ExpressStatic(path.join(__dirname, 'public'), { maxAge: 2592000 })
);
export default app;