DEV: Use category ids in URLs preferentially

This commit is contained in:
Daniel Waterworth
2019-11-29 15:47:17 +00:00
parent 9251065768
commit 374534f00e
8 changed files with 20 additions and 18 deletions

View File

@@ -2683,7 +2683,7 @@ export default {
]
}
},
"/c/bug/l/latest.json": {
"/c/bug/1/l/latest.json": {
users: [
{ id: 1, username: "sam", avatar_template: "/images/avatar.png" },
{
@@ -3863,7 +3863,7 @@ export default {
]
}
},
"/c/feature/l/latest.json": {
"/c/feature/2/l/latest.json": {
users: [
{ id: 1, username: "sam", avatar_template: "/images/avatar.png" },
{
@@ -4935,7 +4935,7 @@ export default {
]
}
},
"/c/dev/l/latest.json": {
"/c/dev/7/l/latest.json": {
users: [
{ id: 1, username: "sam", avatar_template: "/images/avatar.png" },
{

View File

@@ -64,8 +64,8 @@ export default function() {
return response(json);
});
this.get("/c/bug/l/latest.json", () => {
const json = fixturesByUrl["/c/bug/l/latest.json"];
this.get("/c/bug/1/l/latest.json", () => {
const json = fixturesByUrl["/c/bug/1/l/latest.json"];
if (loggedIn()) {
// Stuff to let us post