HttpMiddlewareChain
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
An implementation of chainable http middleware.
Wrap your http handlers in middleware to add functionality and reduce code duplication.
export default function chain()
.then(add(requireHttpMethod("post")))
.then(add(requireAuthentication()))
.then(send())
Migrated from folder: http/middleware/HttpMiddlewareChain