added backends, improved templating, rbac
This commit is contained in:
@@ -14,7 +14,7 @@ async def lifespan(app: FastAPI):
|
||||
if settings.app_env == "dev" and settings.dev_bootstrap_enabled:
|
||||
create_all_tables()
|
||||
with SessionLocal() as session:
|
||||
bootstrap_dev_data(session, api_key_secret=settings.dev_bootstrap_api_key)
|
||||
bootstrap_dev_data(session, api_key_secret=settings.dev_bootstrap_api_key, user_password=settings.dev_bootstrap_password)
|
||||
yield
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ def health():
|
||||
return {
|
||||
"status": "ok",
|
||||
"env": settings.app_env,
|
||||
"api": {"version": "v1", "auth": "api-key"},
|
||||
"api": {"version": "v1", "auth": "api-key-or-session"},
|
||||
"storage": {
|
||||
"endpoint": settings.s3_endpoint_url,
|
||||
"bucket": settings.s3_bucket,
|
||||
|
||||
Reference in New Issue
Block a user