Fix formatting

This commit is contained in:
2026-01-11 15:17:58 -06:00
parent 7399cbe785
commit 4a4dc11aa4
4 changed files with 25 additions and 21 deletions

View File

@@ -76,9 +76,8 @@ routes.forEach((route: Route, _idx: number, _allRoutes: Route[]) => {
};
try {
const retval = await runWithContext(
{ user: auth.user },
() => route.handler(req),
const retval = await runWithContext({ user: auth.user }, () =>
route.handler(req),
);
return retval;
} catch (error) {
@@ -117,7 +116,12 @@ async function handler(
const method = await methodParser.parseAsync(req.method);
const byMethod = processedRoutes[method];
console.log("DEBUG: req.path =", JSON.stringify(req.path), "method =", method);
console.log(
"DEBUG: req.path =",
JSON.stringify(req.path),
"method =",
method,
);
for (const [_idx, pr] of byMethod.entries()) {
const match = pr.matcher(req.path);
console.log("DEBUG: trying pattern, match result =", match);