Skip to content

Commit

Permalink
added projects to api index
Browse files Browse the repository at this point in the history
  • Loading branch information
51ngul4r1ty committed May 3, 2022
1 parent 1e41d26 commit 7585407
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions src/server/api/handlers/root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,24 @@ export const rootHandler = function (req, res) {
}
]
},
{
id: "projects",
name: "Projects",
description: "Collection of projects",
displayIndex: 5,
links: [
{
type: APPLICATION_JSON,
rel: ROOT_REL_COLLECTION,
uri: "/api/v1/projects"
}
]
},
{
id: "sprints",
name: "Sprints",
description: "Collection of sprints",
displayIndex: 4,
displayIndex: 6,
links: [
{
type: APPLICATION_JSON,
Expand All @@ -126,7 +139,7 @@ export const rootHandler = function (req, res) {
id: "backlog-items",
name: "Backlog Items",
description: "Collection of backlog items",
displayIndex: 5,
displayIndex: 7,
links: [
{
type: APPLICATION_JSON,
Expand All @@ -139,7 +152,7 @@ export const rootHandler = function (req, res) {
id: "sprint-backlog-items-parts",
name: "Sprint Backlog Item Parts",
description: "Collection of parts under a backlog item contained in a specific sprint",
displayIndex: 6,
displayIndex: 8,
links: [
{
type: APPLICATION_JSON,
Expand All @@ -152,7 +165,7 @@ export const rootHandler = function (req, res) {
id: "product-backlog-items",
name: "Product Backlog Items",
description: "Linked lists used to display backlog items in prioritized order",
displayIndex: 7,
displayIndex: 9,
links: [
{
type: APPLICATION_JSON,
Expand Down

0 comments on commit 7585407

Please sign in to comment.