u
This commit is contained in:
28
docs/api/routes/company/list.md
Normal file
28
docs/api/routes/company/list.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# `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`._
|
||||
Reference in New Issue
Block a user