From 2bb87671b1c5b59d6c770627b99a17a784f81e1d Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 7 Sep 2015 01:08:00 -0400 Subject: stub in details page --- public/assets/js/lib/router.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'public/assets/js/lib/router.js') diff --git a/public/assets/js/lib/router.js b/public/assets/js/lib/router.js index 5bc05c3..d5b9652 100644 --- a/public/assets/js/lib/router.js +++ b/public/assets/js/lib/router.js @@ -8,7 +8,7 @@ var SiteRouter = Router.extend({ "/": 'login', "/index": 'index', "/login": 'login', - "/details/:id": 'room', + "/details/:id": 'details', }, initialize: function(){ @@ -22,5 +22,10 @@ var SiteRouter = Router.extend({ login: function(){ app.view = new LoginView () }, + + details: function(id){ + app.view = new DetailsView () + app.view.load(id) + } }) \ No newline at end of file -- cgit v1.2.3-70-g09d2