Created
July 23, 2018 20:26
-
-
Save norfair00/5aa1bc4d6bf684e785bcd87c83e0d9b2 to your computer and use it in GitHub Desktop.
routes configuration example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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