mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-07-18 17:32:03 +00:00
server: remove old unused routes (#3845)
This commit is contained in:
parent
b2970dbf0d
commit
d2b5e203b0
@ -15,8 +15,6 @@
|
|||||||
package router
|
package router
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
|
|
||||||
@ -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")
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user