lvvsndattasai / P6

Project 6
0 stars 0 forks source link

Convert the web server to use the database - API Route Setup #3

Open lvvsndattasai opened 8 months ago

lvvsndattasai commented 8 months ago

As a developer, I want to set up the API routes in the web server so that the application can communicate with the database.

Acceptance Criteria:

Create API routes for /test, /user/list, /user/:id, and /photosOfUser/:id in webServer.js. Implement route handlers for each of the API routes. Ensure that the routes interact correctly with the MongoDB database. Ensure proper error handling for invalid requests. Estimated Time: 4 hours