Skip to content

FUZD / fuzd-server / createServer

Function: createServer()

createServer<Bindings>(options): Hono<IfAnyThenEmptyObject<EnvOrEmpty<{ Bindings: Bindings; }>> & object, (BlankSchema | MergeSchemaPath<BlankSchema | MergeSchemaPath<{ "/publicKey": { $get: { input: {}; output: { success: false; errors: { name?: string | undefined; message: string; code?: number | undefined; status?: number | undefined; }[]; }; outputFormat: "json"; status: 500; } | { ...; }; }; } & { ...; } & { ...; }... | MergeSchemaPath<object & object & object, "/internal"> | MergeSchemaPath<BlankSchema | MergeSchemaPath<object & object & object & object & object & object & object, "/"> | MergeSchemaPath<object & object & object & object, "/">, "/admin"> | MergeSchemaPath<BlankSchema | MergeSchemaPath<BlankSchema | MergeSchemaPath<{ "/queue": { $get: { input: {}; output: {}; outputFormat: string; status: StatusCode; }; }; } & { "/queue-with-payload": { ...; }; } & ... 4 more ... & { ...; }, "/"> | MergeSchemaPath<...>, "/admin">, "/dashboard"> | MergeSchemaPath<object & object, "/doc">, "/">

Type Parameters

Bindings extends Env

Parameters

options

ServerOptions<Bindings>

Returns

Hono<IfAnyThenEmptyObject<EnvOrEmpty<{ Bindings: Bindings; }>> & object, (BlankSchema | MergeSchemaPath<BlankSchema | MergeSchemaPath<{ "/publicKey": { $get: { input: {}; output: { success: false; errors: { name?: string | undefined; message: string; code?: number | undefined; status?: number | undefined; }[]; }; outputFormat: "json"; status: 500; } | { ...; }; }; } & { ...; } & { ...; }... | MergeSchemaPath<object & object & object, "/internal"> | MergeSchemaPath<BlankSchema | MergeSchemaPath<object & object & object & object & object & object & object, "/"> | MergeSchemaPath<object & object & object & object, "/">, "/admin"> | MergeSchemaPath<BlankSchema | MergeSchemaPath<BlankSchema | MergeSchemaPath<{ "/queue": { $get: { input: {}; output: {}; outputFormat: string; status: StatusCode; }; }; } & { "/queue-with-payload": { ...; }; } & ... 4 more ... & { ...; }, "/"> | MergeSchemaPath<...>, "/admin">, "/dashboard"> | MergeSchemaPath<object & object, "/doc">, "/">

Defined in

packages/server/src/index.ts:55