Skip to content

Commit

Permalink
Add path to route pages
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Oct 15, 2024
1 parent 5f894a6 commit 5ac772c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/api/acs/systems/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
description: Access Control Systems
---
```
/acs/systems
```

# `acs_system`

Represents an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).
Expand Down
4 changes: 4 additions & 0 deletions src/layouts/api-route.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
description: {{page.description}}
---
```
{{path}}
```

{{#each resources}}
# `{{name}}`
{{#if description}}
Expand Down
2 changes: 2 additions & 0 deletions src/lib/layout-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export interface RouteLayoutContext {
description: string
}
description: string
path: string
resources: ContextResource[]
endpoints: ContextEndpoint[]
}
Expand All @@ -145,6 +146,7 @@ export function setApiRouteLayoutContext(
throw new Error(`Missing page metadata for ${route.path}`)
}
file.page = page
file.path = route.path
file.endpoints = route.endpoints.map(({ path, name, description }) => ({
path,
name,
Expand Down

0 comments on commit 5ac772c

Please sign in to comment.