mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
Added url config option
This commit is contained in:
parent
baa7f78e83
commit
7b4bac1874
1 changed files with 2 additions and 2 deletions
|
@ -136,7 +136,7 @@ module.exports = function(config_hash) {
|
|||
res.send(template({
|
||||
name: config.title || "Sinopia",
|
||||
packages: packages,
|
||||
baseUrl: req.protocol + '://' + req.get('host') + '/'
|
||||
baseUrl: config.root || req.protocol + '://' + req.get('host') + '/'
|
||||
}));
|
||||
});
|
||||
});
|
||||
|
@ -273,7 +273,7 @@ module.exports = function(config_hash) {
|
|||
return require('highlight.js').highlightAuto(code).value;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
app.get('/-/readme/:name/:version', function(req, res, next) {
|
||||
storage.get_readme(req.params.name, req.params.version, function(readme) {
|
||||
res.send(marked(readme));
|
||||
|
|
Loading…
Reference in a new issue