X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=skyquake%2Fframework%2Fcore%2Fmodules%2Froutes%2FprojectManagement.js;h=c106f30e3c05c0855fd89c531a51ec69dbf2378d;hb=a0fefa94b21ae1620756cda0d22d5de90b9bcaa9;hp=a8f9a4d115842f4962fafb481afc247d8597f6bd;hpb=9ba0c5e5f242e6e5be9af960f49fc9765b8eb0ed;p=osm%2FUI.git diff --git a/skyquake/framework/core/modules/routes/projectManagement.js b/skyquake/framework/core/modules/routes/projectManagement.js index a8f9a4d11..c106f30e3 100644 --- a/skyquake/framework/core/modules/routes/projectManagement.js +++ b/skyquake/framework/core/modules/routes/projectManagement.js @@ -1,4 +1,3 @@ - /* * * Copyright 2016 RIFT.IO Inc @@ -65,6 +64,21 @@ Router.delete('/project/:projectname', cors(), function(req, res) { }); }); +Router.put('/platform', cors(), function(req, res) { + ProjectManagementAPI.updatePlatform(req).then(function(response) { + utils.sendSuccessResponse(response, res); + }, function(error) { + utils.sendErrorResponse(error, res); + }); +}); + +Router.get('/platform', cors(), function(req, res) { + ProjectManagementAPI.getPlatform(req).then(function(response) { + utils.sendSuccessResponse(response, res); + }, function(error) { + utils.sendErrorResponse(error, res); + }); +}); module.exports = Router;