Root Hooks
A root hook to handle the Next.js application framework
Exobase root hook to handle function running on Next.js api functions
yarn add @exobase/use-next
import { useNext } from '@exobase/use-next'
import { compose } from 'radash'
import type { Props } from '@exobase/core'
import { useNext } from '@exobase/use-next'
export const pingEndpoint = async (props: Props) => {
return {
message: 'pong'
}
}
export default compose(useNext(), pingEndpoint)