mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-23 22:27:34 -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('_rev', match(/^-rev$/))
|
||||||
app.param('org_couchdb_user', match(/^org\.couchdb\.user:/))
|
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 https = require('https')
|
||||||
var JSONStream = require('JSONStream')
|
var JSONStream = require('JSONStream')
|
||||||
var request = require('request')({
|
var request = require('request')({
|
||||||
|
@ -136,9 +136,9 @@ module.exports = function(config_hash) {
|
||||||
|
|
||||||
storage.get_local(function(err, packages) {
|
storage.get_local(function(err, packages) {
|
||||||
res.send(template({
|
res.send(template({
|
||||||
name: config.title || "Sinopia",
|
name: config.title || "Sinopia",
|
||||||
packages: packages,
|
packages: packages,
|
||||||
baseUrl: config.root || req.protocol + '://' + req.get('host') + '/'
|
baseUrl: config.root || req.protocol + '://' + req.get('host') + '/'
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -188,7 +188,7 @@ module.exports = function(config_hash) {
|
||||||
})
|
})
|
||||||
|
|
||||||
//app.get('/*', function(req, res) {
|
//app.get('/*', function(req, res) {
|
||||||
// proxy.request(req, res)
|
// proxy.request(req, res)
|
||||||
//})
|
//})
|
||||||
|
|
||||||
// placeholder 'cause npm require to be authenticated to publish
|
// placeholder 'cause npm require to be authenticated to publish
|
||||||
|
|
Loading…
Reference in a new issue