Last active
August 2, 2018 03:00
-
-
Save waltertschwe/4712f075ce72db679aaaa7451fcc1d80 to your computer and use it in GitHub Desktop.
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
| app.use('/api', totoro.rain({ | |
| v1: { | |
| endpoints: [ | |
| { | |
| route: "/create-user", | |
| method: "GET", | |
| implementation: routes.v1.createUser | |
| }, | |
| { | |
| route: "/delete-user", | |
| method: "GET", | |
| implementation: routes.v1.deleteUser | |
| } | |
| ] | |
| }, | |
| v2: { | |
| endpoints: [ | |
| { | |
| route: "/createUser", | |
| method: "GET", | |
| implementation: routes.v2.createUser | |
| } | |
| { | |
| route: "/delete-user", | |
| method: "GET", | |
| implementation: routes.v1.deleteUser | |
| } | |
| ] | |
| } | |
| })) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment