Skip to content

magic-router v1.1.1

Compare
Choose a tag to compare
@benhurdavies benhurdavies released this 05 Dec 05:41
· 12 commits to master since this release
1fc8263

1.1.1 : Add global Prefix for routing.

Initializing Opitons
let options = {
  dirPath:'./controllers', // path of controller directory
  exclude:[], // optional files path for removing from magic-routering
  prefix:'', // global prefix for routing => added in 1.1.1 releases
};

magicRouter.addAll(app, options);