mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
Fix incorrect validation of route
This commit is contained in:
parent
86dd0eb7ef
commit
f94fffd434
1 changed files with 1 additions and 5 deletions
|
|
@ -122,11 +122,7 @@ export const createServer = (
|
|||
|
||||
console.log(matchedRoute);
|
||||
|
||||
if (
|
||||
matchedRoute &&
|
||||
Object.keys(matchedRoute).length !== 0 &&
|
||||
matchedRoute.name !== "/[...404]"
|
||||
) {
|
||||
if (matchedRoute?.filePath && matchedRoute.name !== "/[...404]") {
|
||||
return await processRoute(matchedRoute, req, logger);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue