Skip to content

Instantly share code, notes, and snippets.

@andycarrell
Created January 18, 2017 02:10
Show Gist options
  • Save andycarrell/f20db961525d18b2b8cbda9d14f7d98d to your computer and use it in GitHub Desktop.
Save andycarrell/f20db961525d18b2b8cbda9d14f7d98d to your computer and use it in GitHub Desktop.
import thisApiMw from './thisApiMw'
import thatApiMw from './thatApiMw'
import someApiMw from './someApiMw'
const mws = {
thisApiMw,
thatApiMw,
someApiMw
}
const list = Object.values(mws)
export {
middlewareObject: mws,
middlewareList: list
}
export default mws
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment