martin-markovic / learn-connect

Multi-feature platform designed to enhance the online learning experience.
MIT License
0 stars 0 forks source link

feat intialize router #2

Closed martin-markovic closed 2 months ago

martin-markovic commented 2 months ago

Description:

Refactor server.js and router.js routing logic. Initialize userFunctions.js and userRoutes.js to handle user routing for modular separation of concerns structure.

router.js

userRoutes.js

userFunctions.js

server.js

Summary

These changes modularize the user management functionalities, making the codebase more organized and easier to maintain. The new routes and middleware functions enable essential CRUD operations for user entities through the /api/users endpoint.