mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
refactor: line breaks good
This commit is contained in:
@@ -13,6 +13,9 @@ module.exports = function (app, middleware, controllers) {
|
|||||||
app.get('/css/previews/:theme', controllers.admin.themes.get);
|
app.get('/css/previews/:theme', controllers.admin.themes.get);
|
||||||
app.get('/osd.xml', controllers.osd.handle);
|
app.get('/osd.xml', controllers.osd.handle);
|
||||||
app.get('/service-worker.js', (req, res) => {
|
app.get('/service-worker.js', (req, res) => {
|
||||||
res.status(200).type('application/javascript').set('Service-Worker-Allowed', `${nconf.get('relative_path')}/`).sendFile(path.join(__dirname, '../../public/src/service-worker.js'));
|
res.status(200)
|
||||||
|
.type('application/javascript')
|
||||||
|
.set('Service-Worker-Allowed', `${nconf.get('relative_path')}/`)
|
||||||
|
.sendFile(path.join(__dirname, '../../build/public/src/service-worker.js'));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user