@exobase/use-express
v1.0.0-rc.34
Published
Exobase root hook to handle function running on Express
Downloads
75
Readme
title: 'useExpress' description: 'A root hook for the Express.js API framework' group: 'Root Hooks' badge: 'Express.js'
An Exobase root hook for the ExpressJS framework
Install
yarn add @exobase/use-express
Usage
import { compose } from 'radash'
import type { Props } from '@exobase/core'
import { useExpress } from '@exobase/use-express'
const endpoint = (props: Props) => {
console.log(props)
}
export default compose(useExpress(), endpoint)