package: fix http client/assets serving
This commit is contained in:
parent
62c13efb00
commit
04b04b8b37
1 changed files with 2 additions and 2 deletions
|
|
@ -25,8 +25,8 @@ express.get('*', function(req, res){
|
|||
} else {
|
||||
res.send('')
|
||||
}
|
||||
} else if (req.path.indexOf('assets/') != -1){
|
||||
res.sendFile(path.resolve(__dirname + '/..' + req.path))
|
||||
} else if (/(assets|client)\//.test(req.path)){
|
||||
res.sendFile(path.resolve(__dirname + '/..' + req.path))
|
||||
} else {
|
||||
res.sendFile(path.resolve(req.path))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue