ApiEndpoint
interfaz
Endpoint de API descubierto en server/api.
ts
import type { ApiEndpoint } from "@meekojs/meeko/server";Código fuente src/server/runtime/discovery.ts:36
Declaración #
ts
interface ApiEndpoint {
readonly kind: 'api'
readonly file: string
readonly pathname: string
readonly method: ApiMethod
readonly clientKey: string
}Ejemplo #
ts
import type { ApiEndpoint } from "@meekojs/meeko/server";
const endpoint: ApiEndpoint = { kind: "api", file: "/server/api/users/[id].get.ts", pathname: "/api/users/[id]", method: "GET", clientKey: "users.byId" };