📋 Endpoint Details
Method:
GET
Path:
/api/admin/profile
Authentication:
Required - Include Authorization: Bearer <token> header
📥 Response Example
{
"success": true,
"message": "Admin profile fetched",
"data": {
"username": "admin_user",
"fullName": "Admin Name",
"email": "admin@example.com",
"createdAt": "2024-01-01T00:00:00.000Z",
"lastActivity": "2024-01-01T00:00:00.000Z"
}
}
💡 Usage Tips
cURL Example:
curl -X GET \
http://localhost:3000/api/admin/profile \
-H "Authorization: Bearer YOUR_TOKEN_HERE"