Article indexing, repo content retrieval, and webhook handling.
Most endpoints use AuthGuard with PUBLIC permission.
Repo access requires owner session unless repo is "gitbook".
Get paginated articles for a repo.
| Name | Type | Required | Notes |
|---|---|---|---|
| page | number | No | Default 1. |
| limit | number | No | Default 10, max 100. |
Reindex a repo path for articles.
| Name | Type | Required | Notes |
|---|---|---|---|
| path | string | Yes | File or directory path. |
| refresh | boolean | No | Clear cache before reindex. |
Fetch repo content for a given path. The wildcard captures everything after the repo name.
| Name | Type | Required | Notes |
|---|---|---|---|
| repo | string | Yes | Repo slug. |
| * | string | No | Path segment after /github/:repo/ |
Handle GitHub webhook events for repo indexing.
| Name | Required | Notes |
|---|---|---|
| x-github-event | Yes | Event type, e.g. push or ping. |
| x-hub-signature-256 | Yes | HMAC signature for verification. |