diff --git a/src/app.ts b/src/app.ts index 365e1ab472e..9c821d411be 100644 --- a/src/app.ts +++ b/src/app.ts @@ -138,8 +138,8 @@ export class App { 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); diff --git a/src/plugins/fs_routes/mod.ts b/src/plugins/fs_routes/mod.ts index 28a5d634ebd..b65f51016d5 100644 --- a/src/plugins/fs_routes/mod.ts +++ b/src/plugins/fs_routes/mod.ts @@ -251,7 +251,7 @@ export async function fsRoutes( 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(