Static Files
Lila mounts static files automatically when App is created — there is no
router.mount(). The project public/ directory is served first, with the
bundled Lila assets as a fallback:
/public/<path>→ the wholepublic/directory (also covers/public/uploads/<file>)./js/<file>,/img/<file>,/swagger/<file>→ the matching subdirectories ofpublic/(or the packaged ones)./uploads/<file>→public/uploads/, the defaultupload()destination./favicon.ico,/sitemap.xml,/robots.txt→ served at the site root from the project root orpublic/(generated bylila seo).
Static
from lila.core.app import App
# Mounts /public, /js, /img, /swagger, /uploads, /favicon.ico,
# /sitemap.xml and /robots.txt automatically.
app = App(routes=[router])
# A different public root:
app = App(routes=[router], public_dir="assets")