UNPKG

@nymphjs/server

Version:

Nymph.js - REST Server

18 lines (17 loc) 534 B
import type { OptionsJson } from 'body-parser'; import { Nymph } from '@nymphjs/nymph'; export declare class ForbiddenClassError extends Error { constructor(message: string); } /** * A REST server middleware creator for Nymph. * * Written by Hunter Perrin for SciActive. * * @author Hunter Perrin <hperrin@gmail.com> * @copyright SciActive Inc * @see http://nymph.io/ */ export declare function createServer(nymph: Nymph, { jsonOptions }?: { jsonOptions?: OptionsJson; }): import("express-serve-static-core").Express;