mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
Switched some tabs to spaces
This commit is contained in:
parent
39083b819f
commit
2a299c9201
1 changed files with 5 additions and 5 deletions
10
lib/index.js
10
lib/index.js
|
@ -116,7 +116,7 @@ module.exports = function(config_hash) {
|
|||
app.param('_rev', match(/^-rev$/))
|
||||
app.param('org_couchdb_user', match(/^org\.couchdb\.user:/))
|
||||
|
||||
/* app.get('/-/all', function(req, res) {
|
||||
/* app.get('/-/all', function(req, res) {
|
||||
var https = require('https')
|
||||
var JSONStream = require('JSONStream')
|
||||
var request = require('request')({
|
||||
|
@ -136,9 +136,9 @@ module.exports = function(config_hash) {
|
|||
|
||||
storage.get_local(function(err, packages) {
|
||||
res.send(template({
|
||||
name: config.title || "Sinopia",
|
||||
packages: packages,
|
||||
baseUrl: config.root || req.protocol + '://' + req.get('host') + '/'
|
||||
name: config.title || "Sinopia",
|
||||
packages: packages,
|
||||
baseUrl: config.root || req.protocol + '://' + req.get('host') + '/'
|
||||
}));
|
||||
});
|
||||
});
|
||||
|
@ -188,7 +188,7 @@ module.exports = function(config_hash) {
|
|||
})
|
||||
|
||||
//app.get('/*', function(req, res) {
|
||||
// proxy.request(req, res)
|
||||
// proxy.request(req, res)
|
||||
//})
|
||||
|
||||
// placeholder 'cause npm require to be authenticated to publish
|
||||
|
|
Loading…
Reference in a new issue