mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[bugfix] new token API issues (#4022)
* fix incorrect endpoint being registered for /token/{id} * update the maximum page value for tokens endpoint to 100 * update the available tokens page options * set a default limit of 25 to match the first available settings panel option * ensure OnInvalidateToken() hook is called during token delete
This commit is contained in:
@@ -43,6 +43,6 @@ func New(processor *processing.Processor) *Module {
|
||||
|
||||
func (m *Module) Route(attachHandler func(method string, path string, f ...gin.HandlerFunc) gin.IRoutes) {
|
||||
attachHandler(http.MethodGet, BasePath, m.TokensInfoGETHandler)
|
||||
attachHandler(http.MethodGet, BasePathWithID, m.TokensInfoGETHandler)
|
||||
attachHandler(http.MethodGet, BasePathWithID, m.TokenInfoGETHandler)
|
||||
attachHandler(http.MethodPost, InvalidateTokenPath, m.TokenInvalidatePOSTHandler)
|
||||
}
|
||||
|
Reference in New Issue
Block a user