diff --git a/docs/latest/concepts/app.md b/docs/latest/concepts/app.md index b2babd93..5c9c405e 100644 --- a/docs/latest/concepts/app.md +++ b/docs/latest/concepts/app.md @@ -300,7 +300,18 @@ TODO: Route ## `.mountApp()` -TODO +Mount an entire other app at the specified path. + +```ts +const someRoutes = new App() + .get("/sitemap.xml", (ctx) => {/* ... */}) + .get("/robots.txt", (ctx) => {/* ... */}); + +export const app = new App() + .use(staticFiles()) + .mountApp("/", someRoutes()) + .fsRoutes(); +``` ## `.handler()`