Skip to content

Instantly share code, notes, and snippets.

@norfair00
Created July 23, 2018 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save norfair00/5aa1bc4d6bf684e785bcd87c83e0d9b2 to your computer and use it in GitHub Desktop.
Save norfair00/5aa1bc4d6bf684e785bcd87c83e0d9b2 to your computer and use it in GitHub Desktop.
routes configuration example
modules.export = functtion () {
}
/**
* Path: url of route
* Controller: function of router
* Rules: for manage acccess to ressource
*
* Example: addRoute("/admin", adminRouter, checkLoggerAndAsRoles)
*
**/
function addRoute (path, controller, rules) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment