The Project-scoped directory routes; the repos and the access check are components of their own.
API
@Component({
contributes: {
"HttpModule.routes": [
{
id: "projects.dirs",
prefix: "/api/projects/:projectId/dirs",
auth: "user",
order: 150,
},
{
id: "projects.dir-skills",
prefix: "/api/projects/:projectId/dir-skills",
auth: "user",
order: 160,
},
],
},
})
export class ProjectsRoutes {
@Use() private readonly access!: Access;
@Use() private readonly desktop!: Desktop;
@Bind("projects.dirs") dirsRoutes!: Hono<AppEnv>;
@Bind("projects.dir-skills") dirSkillsRoutes!: Hono<AppEnv>;
setup();
}Dependencies & Wiring
Extracted from class decoratorsContributes
{
"HttpModule.routes": [
{
"id": "projects.dirs",
"prefix": "/api/projects/:projectId/dirs",
"auth": "user",
"order": 150
},
{
"id": "projects.dir-skills",
"prefix": "/api/projects/:projectId/dir-skills",
"auth": "user",
"order": 160
}
]
}Target slots: HttpModule.routes · View HTTP endpoints (4) →
Methods (1)
setup
setup()