feat: static file mounting for frontend
This commit is contained in:
parent
2fe455ee81
commit
875c0cc258
1 changed files with 3 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ from typing import AsyncGenerator
|
|||
from prometheus_client import make_asgi_app
|
||||
|
||||
from fastapi import FastAPI
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
from starlette.middleware.sessions import SessionMiddleware
|
||||
from starlette.middleware.cors import CORSMiddleware
|
||||
|
||||
|
|
@ -64,4 +65,6 @@ app.include_router(api_router)
|
|||
|
||||
app.misp_handler = MISPHandler()
|
||||
|
||||
app.mount('/', StaticFiles(directory='src/static',html=True))
|
||||
|
||||
prometheus.APP_STATE.state("running")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue