UNPKG

@azure/static-web-apps-cli

Version:
8 lines 863 B
import type http from "http"; export declare function tryFindFileForRequest(rawRequestPath: string): string | null; export declare function isRouteRequiringUserRolesCheck(req: http.IncomingMessage, matchingRoute: SWAConfigFileRoute | undefined, isFunctionRequest: boolean, authStatus: number): boolean; export declare function applyRedirectResponse(req: http.IncomingMessage, res: http.ServerResponse, matchedRoute: SWAConfigFileRoute | undefined): void; export declare function tryGetMatchingRoute(req: http.IncomingMessage, userConfig: SWAConfigFile | undefined): SWAConfigFileRoute | undefined; export declare function isRequestMethodValid(req: http.IncomingMessage, isFunctionRequest: boolean, isAuth: boolean, isDataApiReq: boolean): boolean; export declare function getIndexHtml(requestPath: string | undefined): string; //# sourceMappingURL=routes.d.ts.map