Build Express.js API Endpoint Structure
Categories: Programming & Development Code Generation & Debugging Database & API Queries Web & App Development (Primary)
Generate the basic file structure and boilerplate code for a Node.js Express API endpoint to handle CRUD operations for a resource named '[ResourceName]'. Include separate files for the router and controller logic. Show how to connect the router in the main `server.js` file.
You can edit the prompt before copy
If you share the link prompt will be shared without your changes