diff options
author | 2021-06-23 16:35:57 +0200 | |
---|---|---|
committer | 2021-06-23 16:35:57 +0200 | |
commit | 8c9a8533434ec6e159541896d5f43e39303d42e4 (patch) | |
tree | 3da3cbf9aa33a160cd076f2b9f8d56396ae3bdfa /internal/api/client/instance/instance.go | |
parent | Opengraph meta tags (#55) (diff) | |
download | gotosocial-8c9a8533434ec6e159541896d5f43e39303d42e4.tar.xz |
Instance settings updates (#59)
Allow admins to set instance settings through a PATCH to /api/v1/instance
Update templates to reflect some of the new fields
Diffstat (limited to 'internal/api/client/instance/instance.go')
-rw-r--r-- | internal/api/client/instance/instance.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/api/client/instance/instance.go b/internal/api/client/instance/instance.go index 7fb08f29c..a5becf97d 100644 --- a/internal/api/client/instance/instance.go +++ b/internal/api/client/instance/instance.go @@ -34,5 +34,6 @@ func New(config *config.Config, processor processing.Processor, log *logrus.Logg // Route satisfies the ClientModule interface func (m *Module) Route(s router.Router) error { s.AttachHandler(http.MethodGet, InstanceInformationPath, m.InstanceInformationGETHandler) + s.AttachHandler(http.MethodPatch, InstanceInformationPath, m.InstanceUpdatePATCHHandler) return nil } |