From 27578bc0387520802fff4ccfc8eda868344e2f6d Mon Sep 17 00:00:00 2001 From: Reed von Redwitz Date: Sun, 23 Jun 2024 17:42:29 +0200 Subject: [PATCH] chore: fix some typos (#2528) --- src/app.ts | 4 ++-- src/plugins/fs_routes/mod.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app.ts b/src/app.ts index 365e1ab4..9c821d41 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 28a5d634..b65f5101 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(