mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-20 22:52:46 -05:00
fix: all static files are captured by the router
This commit is contained in:
parent
372cd36497
commit
86a6e5eb7f
1 changed files with 4 additions and 2 deletions
|
@ -44,8 +44,10 @@ module.exports = function(config, auth, storage) {
|
|||
const template = fs.readFileSync(indexTemplate).toString();
|
||||
|
||||
// Static
|
||||
router.get('/-/static/:filename', function(req, res, next) {
|
||||
const file = `${themePath}/${req.params.filename}`;
|
||||
router.get('/-/static/*', function(req, res, next) {
|
||||
const filename = req.params[0];
|
||||
|
||||
const file = `${themePath}/${filename}`;
|
||||
res.sendFile(file, function(err) {
|
||||
if (!err) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue