mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 01:42:26 -05:00
fix incorrect endpoint being registered for /token/{id}
This commit is contained in:
parent
d694666436
commit
7d3708c5f9
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
func (m *Module) Route(attachHandler func(method string, path string, f ...gin.HandlerFunc) gin.IRoutes) {
|
||||||
attachHandler(http.MethodGet, BasePath, m.TokensInfoGETHandler)
|
attachHandler(http.MethodGet, BasePath, m.TokensInfoGETHandler)
|
||||||
attachHandler(http.MethodGet, BasePathWithID, m.TokensInfoGETHandler)
|
attachHandler(http.MethodGet, BasePathWithID, m.TokenInfoGETHandler)
|
||||||
attachHandler(http.MethodPost, InvalidateTokenPath, m.TokenInvalidatePOSTHandler)
|
attachHandler(http.MethodPost, InvalidateTokenPath, m.TokenInvalidatePOSTHandler)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue