Base URL: /api
Returns this documentation page (HTML).
Example:
curl -i GET http://your-host/api/
Protected: auth:sanctum. Returns the authenticated user JSON.
Response (200):
{
"id": 1,
"name": "Example User",
"email": "user@example.com",
// additional attributes...
}
Example (with Sanctum token):
curl -H "Authorization: Bearer <TOKEN>" http://your-host/api/user
/api (see routes/api.php).