Mounting Routers¶
This page has moved
Mounting is now covered alongside subdomains in Min 07-08 — Subdomains & Mounting, which also documents hook ordering across mounts and the one limitation to know about: there is no path prefix.
The short version¶
# api.py
from heaven import Router
api = Router()
api.GET('/v1/customers', list_customers)
# app.py
from heaven import Application
from api import api
app = Application()
app.mount(api)
isolated=True (the default) merges routes only. isolated=False also merges configuration, buckets, and template loaders.