From 83517eb8d489cfceda8e6b7ab1b104a8f0b1f3a8 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 4 Nov 2015 20:33:14 -0500 Subject: iscroll workin, api fetching, hud populating --- StoneIsland/www/js/lib/_router.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'StoneIsland/www/js/lib/_router.js') diff --git a/StoneIsland/www/js/lib/_router.js b/StoneIsland/www/js/lib/_router.js index 08b8b819..567d1aad 100644 --- a/StoneIsland/www/js/lib/_router.js +++ b/StoneIsland/www/js/lib/_router.js @@ -6,11 +6,13 @@ var SiteRouter = Router.extend({ routes: { '/': 'intro', '/intro': 'intro', - '/store': 'store', '/hub': 'hub', '/story': 'story', '/archive': 'archive', + '/store': 'store', + '/store/:code': 'product', + '/faq': 'faq', '/search': 'search', @@ -38,6 +40,11 @@ var SiteRouter = Router.extend({ app.collection.show() }, + product: function(code){ + app.view = app.product + app.product.load(code) + }, + hub: function(){ app.view = app.hub app.hub.show() -- cgit v1.2.3-70-g09d2