mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Remove old logs
This commit is contained in:
parent
013f0b4459
commit
89590d5a3d
|
|
@ -80,8 +80,6 @@ export const processRoute = async (
|
||||||
return response();
|
return response();
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(matchedRoute);
|
|
||||||
|
|
||||||
const route: APIRouteExports | null = await import(
|
const route: APIRouteExports | null = await import(
|
||||||
matchedRoute.filePath
|
matchedRoute.filePath
|
||||||
).catch((e) => {
|
).catch((e) => {
|
||||||
|
|
@ -89,8 +87,6 @@ export const processRoute = async (
|
||||||
return null;
|
return null;
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(route);
|
|
||||||
|
|
||||||
if (!route) {
|
if (!route) {
|
||||||
return errorResponse("Route not found", 404);
|
return errorResponse("Route not found", 404);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -119,9 +119,6 @@ export const createServer = (
|
||||||
const matchedRoute = matchRoute(
|
const matchedRoute = matchRoute(
|
||||||
req.url.replace(".well-known", "well-known"),
|
req.url.replace(".well-known", "well-known"),
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log(matchedRoute);
|
|
||||||
|
|
||||||
if (matchedRoute?.filePath && matchedRoute.name !== "/[...404]") {
|
if (matchedRoute?.filePath && matchedRoute.name !== "/[...404]") {
|
||||||
return await processRoute(matchedRoute, req, logger);
|
return await processRoute(matchedRoute, req, logger);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue