Skip to content

Commit

Permalink
move routing to common
Browse files Browse the repository at this point in the history
Add docs for issue
reactioncommerce#224

Move routing to common, per new iron:router recommendations
  • Loading branch information
aaronjudd committed Dec 8, 2014
1 parent 34b1b7a commit 805cee4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ [email protected]
raix:[email protected]
raix:[email protected]
[email protected]
reactioncommerce:[email protected].1
reactioncommerce:[email protected].3
reactioncommerce:[email protected]
reactioncommerce:[email protected]
reactioncommerce:[email protected]
Expand Down
8 changes: 7 additions & 1 deletion client/routing.coffee → common/routing.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# see: https://github.com/EventedMind/iron-router
# iron router handles url path, and renders templates into
# yields based on the logic in this file
# individual reaction packages have their own router.js
# individual reaction packages have their own routing
# *****************************************************

ReactionController = ShopController.extend
Expand All @@ -29,12 +29,18 @@ staticPages = [

# *****************************************************
# to use your own templates, you can do override like this:
#
# Router.routes.index.options.template = "myIndex"
#
# or to change core controllers (and layouts) on a route:
#
# Router.routes.index.controller = ReactionController
# *****************************************************

Router.map ->
# generic static pages
for page in staticPages
console.log page
@route page,
controller: ReactionController

Expand Down
1 change: 0 additions & 1 deletion public/shopping-bag.svg

This file was deleted.

0 comments on commit 805cee4

Please sign in to comment.