POST /api/admin/login 🔓 Public

Authenticate an admin user

📋 Endpoint Details

Method: POST
Path: /api/admin/login
Authentication: Not required

📤 Request Body

{ "username": "string (required)", "password": "string (required)" }

📥 Response Example

{ "success": true, "message": "Admin login successful", "data": { "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." } }

💡 Usage Tips

cURL Example:

curl -X POST \ http://localhost:3000/api/admin/login \ -H "Content-Type: application/json" \ -d '{ "username": "string (required)", "password": "string (required)" }'
← Back to Home