Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

createPublicServerManifest

función

Quita del manifiesto descubierto del servidor las rutas privadas de los handlers, para poder serializarlo y enviarlo al navegador.

ts
import { createPublicServerManifest } from "@meekojs/meeko/framework";

Source code src/shared/clients.ts:84

Firma #

ts
function createPublicServerManifest(manifest: PublicServerManifest): PublicServerManifest

Parameters #

manifest PublicServerManifest

Manifiesto con, como mínimo, los campos públicos de cada endpoint.

Returns #

PublicServerManifest

Un manifiesto nuevo con sólo clientKey, pathname, method, contentType, id.

Example #

ts
import { discoverServerManifest } from "@meekojs/meeko/build";
import { createPublicServerManifest } from "@meekojs/meeko/framework";

const manifest = await discoverServerManifest(process.cwd());
const json = JSON.stringify(createPublicServerManifest(manifest));

See also #

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/shared/clients.ts