You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add mongoose dependency and create API endpoints for fetching and adding user data
- Add "mongoose" dependency to the client's package.json file
- Create a new API endpoint "fetchdata" in the client's pages/api directory to fetch user data from the MongoDB database
- Create a new API endpoint "add" in the client's pages/api directory to add new user data to the database
- Define the "UserData" model in the client's models/userdata.ts file to represent the structure of user data in the database
Related to #123
0 commit comments