schedule.js was recently changed to export a couple of functions in addition to the router object. As a result, the code to import that router object in app.js would crash:
app.use("/schedule", require("./schedule/schedule.js"));
The fix is to grab the router object from object returned by the require statement.
schedule.js was recently changed to export a couple of functions in addition to the router object. As a result, the code to import that router object in app.js would crash:
app.use("/schedule", require("./schedule/schedule.js"));
The fix is to grab the router object from object returned by the require statement.