change http api version

This commit is contained in:
oleg 2015-12-08 03:22:23 +03:00
parent 25673fbb1c
commit 27009f164b

View File

@ -51,7 +51,7 @@ module.exports = function(app) {
var logger = app.lib.logger('http api'); var logger = app.lib.logger('http api');
// run building of a project // run building of a project
router.post('/api/1.0/builds', function(req, res, next) { router.post('/api/0.1/builds', function(req, res, next) {
Steppy( Steppy(
function() { function() {
var projectName = req.body.project, var projectName = req.body.project,
@ -76,7 +76,7 @@ module.exports = function(app) {
}); });
// TODO: restrict access with some sort of token // TODO: restrict access with some sort of token
router.del('/api/1.0/projects/:name', function(req, res, next) { router.del('/api/0.1/projects/:name', function(req, res, next) {
var projectName = req.params.name; var projectName = req.params.name;
Steppy( Steppy(
function() { function() {
@ -95,7 +95,7 @@ module.exports = function(app) {
); );
}); });
router.patch('/api/1.0/projects/:name', function(req, res, next) { router.patch('/api/0.1/projects/:name', function(req, res, next) {
var projectName = req.params.name, var projectName = req.params.name,
newProjectName = req.body.name; newProjectName = req.body.name;