Authentication
Login
Request Body:
POST /admin/login
Authenticate an admin user and retrieve an access token.
{
"email": "admin@example.com",
"password": "password123"
}
Response:
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"admin": "admin@example.com",
"id": "60d5ec49f1b2c72d88f8e8b5",
"isRegistered": true
}