Pendigard's picture
Upload folder using huggingface_hub (part 23)
bd98362 verified
Raw History Blame Contribute Delete
419 Bytes
module.exports = function (app) {
app.all('/*', function (req, res, next) {
var arbitraryUrls = ['partials', 'api'];
if (arbitraryUrls.indexOf(req.url.split('/')[1]) > -1) {
next();
} else {
res.render('layout');
}
});
app.get('/partials/*', function (req, res, next) {
res.render('.' + req.path, { title: 'Fakedata.org' });
});
};