mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 07:52: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
|
|
@ -73,3 +73,35 @@ import (
|
|||
// '500':
|
||||
// description: internal server error
|
||||
func (m *Module) DebugAPUrlHandler(c *gin.Context) {}
|
||||
|
||||
// DebugClearCachesHandler swagger:operation POST /api/v1/admin/debug/caches/clear debugClearCaches
|
||||
//
|
||||
// Sweep/clear all in-memory caches.
|
||||
//
|
||||
// Only enabled / exposed if GoToSocial was built and is running with flag DEBUG=1.
|
||||
//
|
||||
// ---
|
||||
// tags:
|
||||
// - debug
|
||||
//
|
||||
// produces:
|
||||
// - application/json
|
||||
//
|
||||
// security:
|
||||
// - OAuth2 Bearer:
|
||||
// - admin
|
||||
//
|
||||
// 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
|
||||
func (m *Module) DebugClearCachesHandler(c *gin.Context) {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue