mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 23:45:45 +01:00
more cleanup in routes/user.js
This commit is contained in:
@@ -27,8 +27,8 @@ var nconf = require('nconf'),
|
||||
// Static Assets
|
||||
app.get('/plugins/:id/*', function(req, res) {
|
||||
var relPath = req.url.replace('/plugins/' + req.params.id, '');
|
||||
if (Plugins.staticDirs[req.params.id]) {
|
||||
var fullPath = path.join(Plugins.staticDirs[req.params.id], relPath);
|
||||
if (plugins.staticDirs[req.params.id]) {
|
||||
var fullPath = path.join(plugins.staticDirs[req.params.id], relPath);
|
||||
fs.exists(fullPath, function(exists) {
|
||||
if (exists) {
|
||||
res.sendfile(fullPath, {
|
||||
|
||||
Reference in New Issue
Block a user