Since the volunteer and opportunity routes have been moved into their own files, we can now remove the duplicate code from server.js and instead import separate routers. There is also a redundant transport object in both of the new files that we can remove and instead reference the one in server.js.
Since the volunteer and opportunity routes have been moved into their own files, we can now remove the duplicate code from
server.js
and instead import separate routers. There is also a redundanttransport
object in both of the new files that we can remove and instead reference the one in server.js.