style: static asset serving
Signed-off-by: Michael Nutt <michael@nuttnet.net>
This commit is contained in:
parent
021b1b38fd
commit
8686183bfb
1 changed files with 4 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue