oneuptime/HelmChart/index.ts
Nawaz Dhandala 78bd51ad3a
fix
2022-04-15 23:14:01 +01:00

17 lines
407 B
TypeScript

import { ExpressStatic } from 'CommonServer/utils/Express';
import app from 'CommonServer/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;