mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-22 13:55:17 +02:00
Realized that the main app doesn't use partials anymore, which makes template customization easier.
This commit is contained in:
@@ -115,21 +115,6 @@ module.exports = function(options) {
|
||||
app.use(csrf())
|
||||
app.use(validator())
|
||||
|
||||
app.get('/partials/*', function(req, res) {
|
||||
var whitelist = {
|
||||
'devices/index': true
|
||||
, 'devices/control': true
|
||||
, 'devices/screen': true
|
||||
}
|
||||
|
||||
if (whitelist.hasOwnProperty(req.params[0])) {
|
||||
res.render(path.join('partials', req.params[0]))
|
||||
}
|
||||
else {
|
||||
res.send(404)
|
||||
}
|
||||
})
|
||||
|
||||
app.get('/', function(req, res) {
|
||||
res.render('index')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user