Skip to content

Commit d7b1089

Browse files
committed
fix: getBasePath
1 parent 6a0fa0c commit d7b1089

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/frameworks-express/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,5 +206,5 @@ export async function getSession(
206206
}
207207

208208
function getBasePath(req: e.Request) {
209-
return req.baseUrl.split(req.params[0])[0].replace(/\/$/, "")
209+
return req.baseUrl.split(req.params.path[0])[0].replace(/\/$/, "")
210210
}

0 commit comments

Comments
 (0)