fix: missing static file serving folder

This commit is contained in:
Stefan Stammberger 2021-08-23 18:51:17 +02:00
parent 83a9dc2a3e
commit 0806ccfbbd
No known key found for this signature in database
GPG Key ID: 645FA807E935D9D5

View File

@ -38,6 +38,7 @@ async def create_app(config_object="lnbits.settings") -> FastAPI:
""" """
app = FastAPI() app = FastAPI()
app.mount("/static", StaticFiles(directory="lnbits/static"), name="static") app.mount("/static", StaticFiles(directory="lnbits/static"), name="static")
app.mount("/core/static", StaticFiles(directory="lnbits/core/static"), name="core_static")
origins = [ origins = [
"http://localhost", "http://localhost",