Skip to content

Commit 7e64c75

Browse files
committed
fix: getBasePath
1 parent 6a0fa0c commit 7e64c75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/frameworks-express/src/index.ts

+1-1
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].replace(/\/$/, "")
210210
}

0 commit comments

Comments
 (0)