From 27009f164b382613c44ee77475ef6e0c05386972 Mon Sep 17 00:00:00 2001 From: oleg Date: Tue, 8 Dec 2015 03:22:23 +0300 Subject: [PATCH] change http api version --- httpApi.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/httpApi.js b/httpApi.js index 69bba58..7878f27 100644 --- a/httpApi.js +++ b/httpApi.js @@ -51,7 +51,7 @@ module.exports = function(app) { var logger = app.lib.logger('http api'); // 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( function() { var projectName = req.body.project, @@ -76,7 +76,7 @@ module.exports = function(app) { }); // 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; Steppy( 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, newProjectName = req.body.name;