--- a/backend/routes.js
+++ b/backend/routes.js
@@ -13,12 +13,14 @@
app.post('/api/vf-os-enabler/v0/register', controllerV0.registerVapp);
app.post('/api/vf-os-enabler/v0/notifications', controllerV0.createNotifications);
app.post('/api/vf-os-enabler/v0/notification/rules/', controllerV0.createNotificationsRules);
- app.delete('/api/vf-os-enabler/v0/app/:appid', controllerV0.deleteVapp);
- app.delete('/api/vf-os-enabler/v0/rule/:rulesid', controllerV0.deleteRule);
app.get('/api/vf-os-enabler/v0/getRules/:appid', controllerV0.getRules);
app.get('/api/vf-os-enabler/v0/getNotifications/:appid', controllerV0.getNotifications);
app.get('/api/vf-os-enabler/v0/getApps/:developerid', controllerV0.getApps);
- app.get('/api/vf-os-enabler/v0/getStatistics/:ruleid', controllerV0.getStatistics);
+ app.get('/api/vf-os-enabler/v0/getStatistics/:rulesid', controllerV0.getStatistics);
+ app.get('/api/vf-os-enabler/v0/getAllRule/:rulesid', controllerV0.getAllRule);
+ app.delete('/api/vf-os-enabler/v0/app/:appid', controllerV0.deleteVapp);
+ app.delete('/api/vf-os-enabler/v0/rule/:rulesid', controllerV0.deleteRule);
+ app.put('/api/vf-os-enabler/v0/edit', controllerV0.editRule);
app.get('*', function(req, res) {
res.sendFile('index.html', { root: constants.FRONTEND_PATH + '/public/views/' }); // load our public/index.html file