UNPKG

sofa-api

Version:

Create REST APIs with GraphQL

10 lines (9 loc) 398 B
import { createSofaRouter } from './router.js'; import { createSofa } from './sofa.js'; export { OpenAPI } from './open-api/index.js'; export { resolveFieldType, buildSchemaObjectFromType } from './open-api/types.js'; export { mapToPrimitive } from './open-api/utils.js'; export function useSofa(config) { return createSofaRouter(createSofa(config)); } export { createSofaRouter, createSofa };