Powerful Mounts Are Here π₯
Since v0.22.0 you can use powerful mounting with powerful routing π₯³
Mount declaration π
mount Settings:
"/":
....
mount Profile:
"/":
...
mount "/settings" -> SettingsMount usage π₯
serve(...): # You can use appRoutes for SPA also π
mount "/profile" -> Profile
"/":
...Mounts is REALLY powerful β‘
You can use path params in mounting:
serve(...): # or appRoutes
mount "/<arg>/$id" -> SomeMountChangelog
- Add mounting π₯
- Add return statement for SSG apps β¨
serve(...): "/json": return {"response": "..."} "/html": return buildHtml: .... "/text": return "Hello, world!"