Adding a simple API endpoint for userDetails