29 lines
459 B
Markdown
29 lines
459 B
Markdown
# `GET /company`
|
|
|
|
Protected. Requires a valid session cookie (`credentials: 'include'`).
|
|
|
|
List companies
|
|
|
|
Lists companies for the authenticated user.
|
|
|
|
## Response `200`
|
|
|
|
Company list
|
|
|
|
```json
|
|
{
|
|
"companies": []
|
|
}
|
|
```
|
|
|
|
## Errors
|
|
|
|
| Status | Description |
|
|
|--------|-------------|
|
|
| 401 | Unauthorized — `{"error":"…"}` |
|
|
| 500 | Server error — `{"error":"…"}` |
|
|
|
|
---
|
|
|
|
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._
|