Added bootstrap with ng-bootstrap

This commit is contained in:
William Welling
2016-12-01 13:49:24 -06:00
parent 28e23f0cdd
commit b56fc730c5
20 changed files with 175 additions and 50 deletions

View File

@@ -57,8 +57,9 @@ function cacheControl(req, res, next) {
next();
}
// Serve static files
app.use('/assets', cacheControl, express.static(path.join(__dirname, 'assets'), {maxAge: 30}));
app.use(cacheControl, express.static(path.join(ROOT, 'dist/client'), {index: false}));
app.use('/assets', cacheControl, express.static(path.join(__dirname, 'assets'), { maxAge: 30 }));
app.use('/styles', cacheControl, express.static(path.join(__dirname, 'styles'), { maxAge: 30 }));
app.use(cacheControl, express.static(path.join(ROOT, 'dist/client'), { index: false }));
//
/////////////////////////
@@ -77,7 +78,7 @@ function ngApp(req, res) {
preboot: false,
baseUrl: '/',
requestUrl: req.originalUrl,
originUrl: `http://localhost:${ app.get('port') }`
originUrl: `http://localhost:${app.get('port')}`
});
}