Skip to content

Instantly share code, notes, and snippets.

@cohitre
Last active August 29, 2015 14:09
Show Gist options
  • Save cohitre/98078b116c4bdcac1270 to your computer and use it in GitHub Desktop.
Save cohitre/98078b116c4bdcac1270 to your computer and use it in GitHub Desktop.
`import myAddonRouter from 'my-addon/router';`
MyAddonRoutesInitializer =
name: "myAddonRoutes"
initialize: (container, app) ->
router = container.lookupFactory("router:main")
router.map ->
myAddonRouter this
export default function(router) {
router.resource('debugging', function() {
this.route("console", {
path: "/console/*request"
});
this.route("resources", function() {
this.route("resource", {
path: "/:resource_id"
});
});
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment