diff options
author | 2024-06-03 11:20:53 +0200 | |
---|---|---|
committer | 2024-06-03 11:20:53 +0200 | |
commit | d79c2f26888b512faaa0526936b8752cfb6c8b28 (patch) | |
tree | 3e93405e81eb84492e192181f199f34f9ac227cb /internal/api/model | |
parent | [feature] Add from: search operator and account_id query param (#2943) (diff) | |
download | gotosocial-d79c2f26888b512faaa0526936b8752cfb6c8b28.tar.xz |
[feature/frontend] Add debug sections to settings panel (#2950)
* [feature/frontend] Add debug sections to settings panel
* max-width
* swagger
Diffstat (limited to 'internal/api/model')
-rw-r--r-- | internal/api/model/instancev1.go | 2 | ||||
-rw-r--r-- | internal/api/model/instancev2.go | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/internal/api/model/instancev1.go b/internal/api/model/instancev1.go index 03e27619c..217edc08c 100644 --- a/internal/api/model/instancev1.go +++ b/internal/api/model/instancev1.go @@ -59,6 +59,8 @@ type InstanceV1 struct { // // example: 0.1.1 cb85f65 Version string `json:"version"` + // Whether or not instance is running in DEBUG mode. Omitted if false. + Debug *bool `json:"debug,omitempty"` // Primary language of the instance. // example: ["en"] Languages []string `json:"languages"` diff --git a/internal/api/model/instancev2.go b/internal/api/model/instancev2.go index dda9033b4..a1b98ea65 100644 --- a/internal/api/model/instancev2.go +++ b/internal/api/model/instancev2.go @@ -40,6 +40,8 @@ type InstanceV2 struct { // // example: 0.1.1 cb85f65 Version string `json:"version"` + // Whether or not instance is running in DEBUG mode. Omitted if false. + Debug *bool `json:"debug,omitempty"` // The URL for the source code of the software running on this instance, in keeping with AGPL license requirements. // example: https://github.com/superseriousbusiness/gotosocial SourceURL string `json:"source_url"` |