The Project-scoped directory routes; the repos and the access check are components of their own.
API
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
}
]
}Code Half (@Bind)
@Bind("projects.dirs") dirsRoutes!: Hono<AppEnv>; · @Bind("projects.dir-skills") dirSkillsRoutes!: Hono<AppEnv>;
Endpoints (4)
GET
projects.dirs auth: user
/api/projects/:projectId/dirs
projects.dirs auth: userPOST
projects.dirs auth: user
/api/projects/:projectId/dirs/access
projects.dirs auth: userGET
projects.dir-skills auth: user
/api/projects/:projectId/dir-skills
projects.dir-skills auth: userGET
projects.dir-skills auth: user