UNPKG

@analogjs/router

Version:

Filesystem-based routing for Angular

23 lines (20 loc) 907 B
import { InjectionToken } from '@angular/core'; import { IncomingMessage, ServerResponse as ServerResponse$1 } from 'node:http'; type ServerRequest = IncomingMessage & { originalUrl: string; }; type ServerResponse = ServerResponse$1; type ServerContext = { req: ServerRequest; res: ServerResponse; }; declare const REQUEST: InjectionToken<ServerRequest>; declare const RESPONSE: InjectionToken<ServerResponse>; declare const BASE_URL: InjectionToken<string>; declare const API_PREFIX: InjectionToken<string>; declare function injectRequest(): ServerRequest | null; declare function injectResponse(): ServerResponse | null; declare function injectBaseURL(): string | null; declare function injectAPIPrefix(): string; export { API_PREFIX, BASE_URL, REQUEST, RESPONSE, injectAPIPrefix, injectBaseURL, injectRequest, injectResponse }; export type { ServerContext, ServerRequest, ServerResponse };