From ad12f5ad7b1babb2e9bf5bc0a564349fd395abee Mon Sep 17 00:00:00 2001 From: Adam Coldrick Date: Fri, 15 Mar 2019 10:55:34 +0000 Subject: [PATCH] Add attachments API availability to /v1/systeminfo Add a boolean representing whether or not attachments are enabled (and therefore the API endpoints are available) to the /v1/systeminfo endpoint. This allows clients to check whether attachments can be used without having to have separate backend-specific configuration themselves. Change-Id: I949200d35e8591d1d670fd987ae7be7911aab983 --- storyboard/api/v1/system_info.py | 1 + 1 file changed, 1 insertion(+) diff --git a/storyboard/api/v1/system_info.py b/storyboard/api/v1/system_info.py index 4374153a..5e77ceca 100644 --- a/storyboard/api/v1/system_info.py +++ b/storyboard/api/v1/system_info.py @@ -43,6 +43,7 @@ class SystemInfoController(rest.RestController): """ sb_ver = VersionInfo('storyboard-api') config = { + 'enable_attachments': CONF.attachments.enable_attachments, 'enable_editable_comments': CONF.enable_editable_comments, 'enable_notifications': CONF.enable_notifications }