mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 04:42:25 -05:00
[feature] Debug admin endpoint to clear caches (#2940)
* [feature] Debug admin endpoint to clear caches * go fmt
This commit is contained in:
parent
fa9a3075a5
commit
f9a4a6120d
8 changed files with 94 additions and 7 deletions
|
|
@ -4494,6 +4494,31 @@ paths:
|
|||
summary: Perform a GET to the specified ActivityPub URL and return detailed debugging information.
|
||||
tags:
|
||||
- debug
|
||||
/api/v1/admin/debug/caches/clear:
|
||||
post:
|
||||
description: Only enabled / exposed if GoToSocial was built and is running with flag DEBUG=1.
|
||||
operationId: debugClearCaches
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: All good baby!
|
||||
"400":
|
||||
description: bad request
|
||||
"401":
|
||||
description: unauthorized
|
||||
"404":
|
||||
description: not found
|
||||
"406":
|
||||
description: not acceptable
|
||||
"500":
|
||||
description: internal server error
|
||||
security:
|
||||
- OAuth2 Bearer:
|
||||
- admin
|
||||
summary: Sweep/clear all in-memory caches.
|
||||
tags:
|
||||
- debug
|
||||
/api/v1/admin/domain_allows:
|
||||
get:
|
||||
operationId: domainAllowsGet
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue