Files
homewebsite/node_modules/astro/dist/runtime/server/endpoint.d.ts
2025-10-17 20:17:33 +00:00

8 lines
416 B
TypeScript

import type { Logger } from '../../core/logger/core.js';
import type { APIRoute } from '../../types/public/common.js';
import type { APIContext } from '../../types/public/context.js';
/** Renders an endpoint request to completion, returning the body. */
export declare function renderEndpoint(mod: {
[method: string]: APIRoute;
}, context: APIContext, isPrerendered: boolean, logger: Logger): Promise<Response>;