身分驗證
POST /auth/login 公開
登入並開始工作階段。
請求內容
emailstring 必填- 帳戶電子郵件。範例
[email protected] passwordstring 必填- 帳號密碼。
curl -X POST "https://freehire.me/api/v1/auth/login" \
-H 'Content-Type: application/json' \
-c cookies.txt \
-d '{"email":"[email protected]","password":"hunter2hunter2"}'{ "data": { "id": 1, "email": "[email protected]", "role": "user" } }