'use strict';

module.exports = {
  all: {
    method: 'GET',
    path: '/'
  },
  byName: {
    method: 'GET',
    path: '/:package'
  },
  add: {
    method: 'POST',
    path: '/'
  },
  download: {
    method: 'GET',
    path: '/:package/tarball',
    stream: true
  },
  upload: {
    method: 'POST',
    path: '/:package/tarball',
    data: 'form'
  }
};
'use strict';

module.exports = {
  all: {
    method: 'GET',
    path: '/'
  },
  byName: {
    method: 'GET',
    path: '/:package'
  },
  add: {
    method: 'POST',
    path: '/'
  },
  download: {
    method: 'GET',
    path: '/:package/tarball/:os/:arch',
    stream: true
  },
  upload: {
    method: 'POST',
    path: '/:package/tarball/:os/:arch',
    data: 'form'
  }
};
Fix download and upload urls
Fix download and upload urls
