style: static asset serving

Signed-off-by: Michael Nutt <michael@nuttnet.net>
This commit is contained in:
Michael Nutt 2023-01-19 14:06:59 -05:00
parent 021b1b38fd
commit 8686183bfb

View file

@ -371,7 +371,10 @@ function start(opts) {
// ------------------------------------
// serve web presentations
app.use('/assets', express.static(path.join(__dirname, '../public/resources')));
app.use(
'/assets',
express.static(path.join(__dirname, '../public/resources')),
);
const templates = path.join(__dirname, '../public/templates');
const serveTemplate = (urlPath, template, dataGetter) => {