diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-04 20:33:14 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-04 20:33:14 -0500 |
| commit | 83517eb8d489cfceda8e6b7ab1b104a8f0b1f3a8 (patch) | |
| tree | be6fce89034de08d745cfd0940ea7ea747a1b2a7 /StoneIsland/www/js/lib/_router.js | |
| parent | 8d7a5da72199e25db9056b9ee585094ac3274f49 (diff) | |
iscroll workin, api fetching, hud populating
Diffstat (limited to 'StoneIsland/www/js/lib/_router.js')
| -rw-r--r-- | StoneIsland/www/js/lib/_router.js | 9 |
1 files changed, 8 insertions, 1 deletions
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() |
