herbsjs / herbs2rest

Create a REST API based on HerbsJS
MIT License
2 stars 13 forks source link

Information about Express #2

Closed dalssoft closed 3 years ago

dalssoft commented 3 years ago

It should be clear on the docs that this glue works with Express (and which version).

const { generateRoutes } = require('herbs2rest')

const routes = new Router()

generateRoutes(controllerList, routes)

app.use(routes)

Here, it should be clear that new Router() is a express object.

gabrielmellooliveira commented 3 years ago

The README has been updated with information to make it clear that herbs2rest works with express.