mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Fix incorrect validation of route
This commit is contained in:
parent
86dd0eb7ef
commit
f94fffd434
|
|
@ -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…
Reference in a new issue