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.

discoverServerManifest

función

Descubre de forma estática los endpoints de server/api, los procedimientos de server/rpc y los canales de server/socket, para el build y el desarrollo. No ejecuta ningún handler.

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

Source code src/server/api/manifest-discovery.ts:69

Firma #

ts
function discoverServerManifest(projectRoot: string): Promise<ServerManifest>

Parameters #

projectRoot string

Carpeta del proyecto.

Returns #

Promise<ServerManifest>

El manifiesto del servidor, con rutas de archivo absolutas.

Throws #

Error

Si un nombre de archivo no es válido o dos endpoints, procedimientos o canales colisionan.

Example #

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

const manifest = await discoverServerManifest(process.cwd());
console.log(manifest.api.map((endpoint) => `${endpoint.method} ${endpoint.pathname}`));

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/server/api/manifest-discovery.ts