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.

discoverConfiguredRoutes

función

Descubre las rutas de la aplicación y de los layers de meeko.config.ts (también los que aportan los módulos) en un solo manifiesto. Las páginas de los layers usan el shell del proyecto. Una colisión de URL falla.

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

Source code src/framework/config.ts:633

Firma #

ts
function discoverConfiguredRoutes(projectRoot: string): Promise<readonly RouteRecord[]>

Parameters #

projectRoot string

Carpeta del proyecto.

Returns #

Promise<readonly RouteRecord[]>

El manifiesto de rutas ordenado.

Throws #

Error

Si una fuente no es válida o dos rutas colisionan.

Example #

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

const routes = await discoverConfiguredRoutes(process.cwd());
console.log(routes.map((route) => route.id));

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/framework/config.ts