chore(api): add API metadata (#1723)

This commit is contained in:
Kyle Robbertze 2022-04-01 15:17:40 +02:00 committed by GitHub
parent d698ace89f
commit cbcd0abcae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -45,3 +45,9 @@ USE_L10N = True
USE_TZ = True
LOGGING = setup_logger(LIBRETIME_LOG_FILEPATH)
SPECTACULAR_SETTINGS = {
"TITLE": "LibreTime API",
"DESCRIPTION": "Radio Broadcast & Automation Platform",
"VERSION": API_VERSION,
}

View File

@ -98,7 +98,6 @@ AUTH_USER_MODEL = "libretime_api.User"
TEST_RUNNER = "libretime_api.tests.runners.ManagedModelTestRunner"
# Logging
def setup_logger(log_filepath: Optional[str]):
logging_handlers = {