Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 19c95c9

Browse files
committed
refactor: check api route pagePath
1 parent e1bf72c commit 19c95c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ export class Application implements ServerApplication {
433433
const router = this.#apiRouting.createRouter(location)
434434
if (router !== null) {
435435
const [url, nestedModules] = router
436-
if (nestedModules.length > 0) {
436+
if (url.pagePath !== '') {
437437
const { url: moduleUrl } = nestedModules.pop()!
438438
return [url, this.#modules.get(moduleUrl)!]
439439
}

0 commit comments

Comments
 (0)