If stories
is your first route and accessible at "/"
then you can define a path like:
App.Router.map () ->
@resource('stories', {path: '/'})
OR you can define an index route and redirect from there like:
App.IndexRoute = Ember.Route.extend
redirect: ->
@transitionTo('stories')
See here a working jsbin that shows the second concept.
EDIT
I guess your problem is now that if your result contains a collection of records you need to remove the additional story
level in your JSON resulting in something like:
{
"stories":[
{
"id":1,
"title":"Test",
"description":"This is a test story"
}
]
}
and for a single record e.g. /stories/123
your JSON should look like:
{
"id":1,
"title":"Test",
"description":"This is a test story"
}
Hope it helps