mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-02-04 12:30:15 +00:00
add version to api urls
This commit is contained in:
parent
6b8404a3ba
commit
fbdfc28129
@ -53,7 +53,7 @@ router.getRoute = function(req) {
|
|||||||
module.exports = function(app) {
|
module.exports = function(app) {
|
||||||
|
|
||||||
// run building of a project
|
// run building of a project
|
||||||
router.post('/api/builds', function(req, res, next) {
|
router.post('/api/1.0/builds', function(req, res, next) {
|
||||||
Steppy(
|
Steppy(
|
||||||
function() {
|
function() {
|
||||||
var projectName = req.body.project,
|
var projectName = req.body.project,
|
||||||
@ -78,7 +78,7 @@ module.exports = function(app) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// TODO: restrict access with some sort of token
|
// TODO: restrict access with some sort of token
|
||||||
router.del('/api/projects/:name', function(req, res, next) {
|
router.del('/api/1.0/projects/:name', function(req, res, next) {
|
||||||
var projectName = req.params.name;
|
var projectName = req.params.name;
|
||||||
Steppy(
|
Steppy(
|
||||||
function() {
|
function() {
|
||||||
@ -97,7 +97,7 @@ module.exports = function(app) {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
router.patch('/api/projects/:name', function(req, res, next) {
|
router.patch('/api/1.0/projects/:name', function(req, res, next) {
|
||||||
var projectName = req.params.name,
|
var projectName = req.params.name,
|
||||||
newProjectName = req.body.name;
|
newProjectName = req.body.name;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user