fixed xpi install

This commit is contained in:
schmeeve
2026-09-24 12:03:25 -07:00
parent 66cb98c062
commit 4138cd64b8

View File

@@ -239,5 +239,13 @@ async def homepage_stats(_: None = Depends(require_access)):
return await notes.get_homepage_stats() return await notes.get_homepage_stats()
@app.get("/static/snotes-capture-firefox.xpi", include_in_schema=False)
async def extension_xpi() -> FileResponse:
return FileResponse(
"static/snotes-capture-firefox.xpi",
media_type="application/x-xpinstall",
)
# Mount static assets last so /api routes take precedence # Mount static assets last so /api routes take precedence
app.mount("/static", StaticFiles(directory="static"), name="static") app.mount("/static", StaticFiles(directory="static"), name="static")