@furystack/http-api
v5.3.21
Published
HTTP Api FuryStack package
Downloads
6
Readme
@furystack/http-api
Usage example
const i = new Injector()
i.useHttpApi({
/** custom http settings */
})
.useHttpAuthentication({
/** custom auth settings */
})
.addHttpRouting(req => {
/** custom logic to resolve action(s) from the incoming request */
})
.useDefaultLoginRoutes() // register '/login', '/currentUser' and '/logout' actions
.listenHttp() // start listening