server: add PUBLIC_MODE settings to allow listing for anonymous user

This commit is contained in:
2023-08-18 12:45:59 +02:00
parent 0c93a39e33
commit 2339be4172
4 changed files with 34 additions and 5 deletions

View File

@@ -87,5 +87,9 @@ class Settings(BaseSettings):
AUTH_FIEF_CLIENT_ID: str | None = None
AUTH_FIEF_CLIENT_SECRET: str | None = None
# API public mode
# if set, all anonymous record will be public
PUBLIC_MODE: bool = False
settings = Settings()