# Web routes endpoints (System (public))

> 4 FeatherPanel System (public) endpoints from web.php: methods, paths, auth, permissions, rate limits, parameters and responses.

Source: https://featherpanel.com/docs/api/reference/web/

Defined in [`backend/app/routes/web.php`](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/web.php). Authentication used here: **Public**. Read [Authentication](https://featherpanel.com/docs/api/authentication/) for how to send credentials and [Rate limits and errors](https://featherpanel.com/docs/api/rate-limits-and-errors/) for the response envelope.

Paths, methods, permissions and rate limits come from the route file. Summaries, parameters and response codes come from the OpenAPI annotations on the controllers; endpoints without annotations show only what the route file declares.

## Endpoints

### ANY `/api`

- Auth: Public
- Route name: `home`
- Controller: [`HomeController::index`](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/Controllers/HomeController.php)
- any HTTP method
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/web.php#L27)

```bash
curl -X GET "$PANEL_URL/api" \
  -H "Accept: application/json"
```

### ANY `/api/manifest.webmanifest`

- Auth: Public
- Route name: `manifest`
- Controller: [`WebAppController::index`](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/Controllers/System/WebAppController.php)
- any HTTP method
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/web.php#L34)

```bash
curl -X GET "$PANEL_URL/api/manifest.webmanifest" \
  -H "Accept: application/json"
```

### GET `/api/public/webspace-shares/{publicId}`

- Auth: Public
- Route name: `public-webspace-share`
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/web.php#L45)

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `publicId` | path | \- | yes |  |

```bash
curl -X GET "$PANEL_URL/api/public/webspace-shares/$PUBLIC_ID" \
  -H "Accept: application/json"
```

### DELETE `/api/public/webspace-shares/{publicId}`

- Auth: Public
- Route name: `public-webspace-share`
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/web.php#L45)

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `publicId` | path | \- | yes |  |

```bash
curl -X DELETE "$PANEL_URL/api/public/webspace-shares/$PUBLIC_ID" \
  -H "Accept: application/json"
```
