FIX: Support ember app routing to topics with only slugs

This commit is contained in:
Robin Ward
2014-09-17 11:18:41 -04:00
parent 943ad8d1d5
commit c16b8364ab
8 changed files with 54 additions and 6 deletions

View File

@ -34,6 +34,10 @@ export default function() {
}
});
this.get("/t/id_for/:slug", function() {
return response({id: 280, slug: "internationalization-localization", url: "/t/internationalization-localization/280"});
});
this.get("/404-body", function() {
return [200, {"Content-Type": "text/html"}, "<div class='page-not-found'>not found</div>"];
});