mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 12:33:07 +00:00
Added bootstrap with ng-bootstrap
This commit is contained in:
@@ -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')}`
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user