HuskieRobotics / SPOT

Apache License 2.0
25 stars 21 forks source link

adjust require as schedule.js export changed #96

Closed gcschmit closed 5 months ago

gcschmit commented 5 months ago

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.

gcschmit commented 5 months ago

pulled in via 2024 update