Express Easy Routes sets up a happy medium Convention over Configuration approach to express routes.
Do you use express? Would you care to give express-easy-routes a spin?
If you are used to writing express routes this way 👇, you might find Express Easy Routes useful!
app.use(express.static()); // ❌ NO!
// ❌ NO!
app.get("/", (req, res) => {
res.send("Hello World!");
});
Instead of configuring each route, tell express where to find your routes.
// ✅ YES!
routes({ app, path: __dirname + "/middlewares/**/*.middleware.js" });
routes({ app, path: __dirname + "/controllers/**/*.controller.js" });
I have convinced Paciolan of the benefits of contributing to the open source community. I am hoping to turn this into a positive experience so they continue to give us devs the time and resources to make more contributions.
All feedback welcome! Want to contribute? Head over to the Github.
Cheers!