mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-25 10:00:33 +00:00
Remove various deprecations (#4017)
This commit is contained in:
@@ -129,13 +129,6 @@ func apiRoutes(e *gin.RouterGroup) {
|
||||
repo.PATCH("/registries/:registry", session.MustPush, api.PatchRegistry)
|
||||
repo.DELETE("/registries/:registry", session.MustPush, api.DeleteRegistry)
|
||||
|
||||
// TODO: remove with 3.x
|
||||
repo.GET("/registry", session.MustPush, api.GetRegistryList)
|
||||
repo.POST("/registry", session.MustPush, api.PostRegistry)
|
||||
repo.GET("/registry/:registry", session.MustPush, api.GetRegistry)
|
||||
repo.PATCH("/registry/:registry", session.MustPush, api.PatchRegistry)
|
||||
repo.DELETE("/registry/:registry", session.MustPush, api.DeleteRegistry)
|
||||
|
||||
// requires push permissions
|
||||
repo.GET("/cron", session.MustPush, api.GetCronList)
|
||||
repo.POST("/cron", session.MustPush, api.PostCron)
|
||||
|
@@ -62,7 +62,6 @@ func Load(noRouteHandler http.HandlerFunc, middleware ...gin.HandlerFunc) http.H
|
||||
{
|
||||
auth.GET("", api.HandleAuth)
|
||||
auth.POST("", api.HandleAuth)
|
||||
auth.POST("/token", api.DeprecatedGetLoginToken)
|
||||
}
|
||||
|
||||
base.GET("/metrics", metrics.PromHandler())
|
||||
|
Reference in New Issue
Block a user