fix: update refresh token endpoint to use hyphen
This commit is contained in:
parent
6322c22b49
commit
e15dddae73
@ -63,7 +63,7 @@ func routers(r *gin.Engine) {
|
|||||||
|
|
||||||
auth := api.Group("", authMiddleware.MiddlewareFunc())
|
auth := api.Group("", authMiddleware.MiddlewareFunc())
|
||||||
|
|
||||||
auth.GET("/refresh_token", authMiddleware.RefreshHandler)
|
auth.GET("/refresh-token", authMiddleware.RefreshHandler)
|
||||||
|
|
||||||
auth.POST("/terminal", commonHandler(createTerminal))
|
auth.POST("/terminal", commonHandler(createTerminal))
|
||||||
auth.GET("/ws/terminal/:id", commonHandler(terminalStream))
|
auth.GET("/ws/terminal/:id", commonHandler(terminalStream))
|
||||||
|
@ -122,7 +122,7 @@ func unauthorized() func(c *gin.Context, code int, message string) {
|
|||||||
// @Tags auth required
|
// @Tags auth required
|
||||||
// @Produce json
|
// @Produce json
|
||||||
// @Success 200 {object} model.CommonResponse[model.LoginResponse]
|
// @Success 200 {object} model.CommonResponse[model.LoginResponse]
|
||||||
// @Router /refresh_token [get]
|
// @Router /refresh-token [get]
|
||||||
func refreshResponse(c *gin.Context, code int, token string, expire time.Time) {
|
func refreshResponse(c *gin.Context, code int, token string, expire time.Time) {
|
||||||
c.JSON(http.StatusOK, model.CommonResponse[model.LoginResponse]{
|
c.JSON(http.StatusOK, model.CommonResponse[model.LoginResponse]{
|
||||||
Success: true,
|
Success: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user