2 * STANDARD_RIFT_IO_COPYRIGHT
5 var app
= require('express').Router();
6 var cors
= require('cors');
7 var utils
= require('../../framework/core/api_utils/utils.js')
8 var ro
= require('./api/ro.js')
10 app
.get('/resource-orchestrator', cors(), function(req
, res
) {
11 ro
.get(req
).then(function(data
) {
12 utils
.sendSuccessResponse(data
, res
);
14 utils
.sendErrorResponse(error
, res
);
17 app
.put('/resource-orchestrator', cors(), function(req
, res
) {
18 ro
.update(req
).then(function(data
) {
19 utils
.sendSuccessResponse(data
, res
);
21 utils
.sendErrorResponse(error
, res
);
25 utils
.passThroughConstructor(app
);