UNPKG

rerumaccusamus

Version:

The meta-framework suite designed from scratch for frontend-focused modern web development.

18 lines (16 loc) 329 B
import { match } from '@modern-js/runtime/server'; export const get = ({ query }: { query: Record<string, unknown> }) => ({ query, }); export const patch = match( { request: { data: { id: Number, name: String, }, }, response: { id: Number }, }, ({ data: { id } }) => ({ id }), );