generators/templates/application/controllers/js/application_controller.js in rhoconnect-4.0.0.beta.10 vs generators/templates/application/controllers/js/application_controller.js in rhoconnect-4.0.0.beta.12

- old
+ new

@@ -1,14 +1,16 @@ -var app = require("ballroom"); -app.controllerName("Application"); +var app = require('ballroom'); +var rc = require('rhoconnect_helpers'); +app.controllerName('Application'); -app.post("/login",{"rc_handler":"authenticate"}, function(req,resp){ +app.post('/login',{'rc_handler':'authenticate', + 'deprecated_route': {'verb': 'post', 'url': ['/application/clientlogin']}}, function(req,resp){ var login = req.params.login; var password = req.params.password; resp.send(true); }); -app.get("/rps_login",{"rc_handler":"rps_authenticate"}, function(req,resp){ +app.get('/rps_login',{'rc_handler':'rps_authenticate'}, function(req,resp){ var login = req.params.login; var password = req.params.password; resp.send(true); });