| 1 | import { notFound } from "next/navigation"; |
| 2 | |
| 3 | import { WebhookList } |
| 4 | import { createServerClient } |
| 5 | |
| 6 | export default async function |
| 7 | params, |
| 8 | }: PageProps< |
| 9 | const { username, |
| 10 | const client = |
| 11 | const { data |
| 12 | "/api/repositories/{username}/{repo}/webhooks", |
| 13 | { params: { path: |
| 14 | ); |
| 15 | // Admins only; the API answers everyone else with 403 or 404. |
| 16 | if (!data) |
| 17 | const owner = |
| 18 | |
| 19 | return <WebhookList owner |
| 20 | } |