chore: fix some typos (#2528)

This commit is contained in:
Reed von Redwitz
2024-06-23 17:42:29 +02:00
committed by GitHub
parent 160148c326
commit 27578bc038
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -138,8 +138,8 @@ export class App<State> {
const middlewares = app.#router._middlewares;
// Special case when user calls one of these:
// - `app.mounApp("/", otherApp)`
// - `app.mounApp("*", otherApp)`
// - `app.mountApp("/", otherApp)`
// - `app.mountApp("*", otherApp)`
const isSelf = path === "*" || path === "/";
if (isSelf && middlewares.length > 0) {
this.#router._middlewares.push(...middlewares);
+1 -1
View File
@@ -251,7 +251,7 @@ export async function fsRoutes<State>(
let parent = mod.path.slice(0, -"_error".length);
parent = parent === "/" ? "*" : parent + "*";
// Add error route as it's own route
// Add error route as its own route
if (!specialPaths.has(mod.path)) {
specialPaths.add(mod.path);
app.all(