Created
February 26, 2020 03:37
-
-
Save rolldone/3f3d72a44cab6f2a5e31f27092d0ed29 to your computer and use it in GitHub Desktop.
Javascript jutsu pattern
This file contains hidden or 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
# Simple passing data with require like this "require('package_name')(passRouter)" | |
module.export = function(router){ | |
// Todo some code here | |
router.blablabla | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment