import { isHttpMethod } from "@scalar/helpers/http/is-http-method";
//#region src/v2/features/app/helpers/get-route-param.ts
function getRouteParam(paramName, route) {
	const param = route?.params[paramName];
	if (typeof param !== "string") return;
	if (paramName === "method") return param && isHttpMethod(param) ? param : void 0;
	return decodeURIComponent(param);
}
//#endregion
export { getRouteParam };

//# sourceMappingURL=get-route-param.js.map