LudoKing-Unofficial/LudoKing-Unofficial-API ? reverse-engineered prompt
Reverse engineered prompt
Build me a small Express API for a LudoKing related tool.
I want a simple server with a welcome route on /, plus endpoints that can fetch room code details, results, and room type info. The room code routes should support the classic, popular, and quick paths, and there should also be a way to check a result from a room code in the URL. Please make it return clean JSON responses like a real API, with success and error messages, and a proper 404 response for unknown routes.
Use environment variables for the port and an API key, and include basic middleware for logging, CORS, parsing request bodies, and serving static files if needed. Keep the code organized into route files and models so it’s easy to follow. If you need to check anything from current docs online, go ahead and look it up.
Are you gonna build this?
make sure you review the code using coderabbit