resolve-api-handler-express
v0.23.2
Published
An Express.js adapter for reSolve API handlers.
Downloads
120
Readme
resolve-api-handler-express
This package is a Api Handler adapter for Express.
Usage
import express from 'express'
import wrapApiHandler from 'resolve-api-handler-express'
const handler = async (req, res) => {
res.end('Hello World!')
}
const app = express()
app.use('/my-handler', wrapApiHandler(handler))
app.listen(3000)