Skip to content

Commit

Permalink
server: remove old unused routes (#3845)
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 authored Jul 21, 2024
1 parent b2970db commit d2b5e20
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions server/router/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
package router

import (
"net/http"

"github.com/gin-gonic/gin"
"github.com/rs/zerolog"

Expand Down Expand Up @@ -272,12 +270,4 @@ func apiRoutes(e *gin.RouterGroup) {
}
}
}

// TODO: remove with 3.x
e.Any("/hook", func(c *gin.Context) {
c.String(http.StatusGone, "use /api/hook")
})
e.Any("/stream/events", func(c *gin.Context) {
c.String(http.StatusGone, "use /api/stream/events")
})
}

0 comments on commit d2b5e20

Please sign in to comment.