0
Fork 0
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:
Brian Peacock 2014-05-12 10:43:18 -05:00
parent 39083b819f
commit 2a299c9201

View file

@ -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