We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a1792c commit 6abe202Copy full SHA for 6abe202
src/handlers/handlerUtils.ts
@@ -734,6 +734,7 @@ export async function tryTargetsRecursively(
734
conditionalRouter = new ConditionalRouter(currentTarget, {
735
metadata,
736
params,
737
+ url: { pathname: c.req.path },
738
});
739
finalTarget = conditionalRouter.resolveTarget();
740
} catch (conditionalRouter: any) {
src/services/conditionalRouter.ts
@@ -7,6 +7,9 @@ type Query = {
7
interface RouterContext {
8
metadata?: Record<string, string>;
9
params?: Record<string, any>;
10
+ url?: {
11
+ pathname: string;
12
+ };
13
}
14
15
enum Operator {
0 commit comments