docs: add simple mountApp example (#3380)

Simple `mountApp()` example from the Discord
This commit is contained in:
fry69
2025-09-10 13:41:39 +02:00
committed by GitHub
parent db5b2a3b82
commit a7af5c0c3d
+12 -1
View File
@@ -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()`