Skip to content

Instantly share code, notes, and snippets.

@waltertschwe
Last active August 2, 2018 03:00
Show Gist options
  • Select an option

  • Save waltertschwe/4712f075ce72db679aaaa7451fcc1d80 to your computer and use it in GitHub Desktop.

Select an option

Save waltertschwe/4712f075ce72db679aaaa7451fcc1d80 to your computer and use it in GitHub Desktop.
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