mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-03-15 17:13:46 +01:00
Remove deprecated API paths (#2639)
This commit is contained in:
@@ -453,7 +453,7 @@ func PostPipeline(c *gin.Context) {
|
||||
// DeletePipelineLogs
|
||||
//
|
||||
// @Summary Deletes log
|
||||
// @Router /repos/{repo_id}/logs/{number} [post]
|
||||
// @Router /repos/{repo_id}/logs/{number} [delete]
|
||||
// @Produce plain
|
||||
// @Success 204
|
||||
// @Tags Pipeline logs
|
||||
|
||||
@@ -34,10 +34,14 @@ import (
|
||||
"github.com/woodpecker-ci/woodpecker/server/store"
|
||||
)
|
||||
|
||||
// EventStreamSSE
|
||||
//
|
||||
// event source streaming for compatibility with quic and http2
|
||||
//
|
||||
|
||||
// @Summary Event stream
|
||||
// @Description event source streaming for compatibility with quic and http2
|
||||
// @Router /stream/events [get]
|
||||
// @Produce plain
|
||||
// @Success 200
|
||||
// @Tags Events
|
||||
func EventStreamSSE(c *gin.Context) {
|
||||
c.Header("Content-Type", "text/event-stream")
|
||||
c.Header("Cache-Control", "no-cache")
|
||||
@@ -118,10 +122,10 @@ func EventStreamSSE(c *gin.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
// LogStream
|
||||
// LogStreamSSE
|
||||
//
|
||||
// @Summary Log stream
|
||||
// @Router /logs/{repo_id}/{pipeline}/{stepID} [get]
|
||||
// @Router /stream/logs/{repo_id}/{pipeline}/{stepID} [get]
|
||||
// @Produce plain
|
||||
// @Success 200
|
||||
// @Tags Pipeline logs
|
||||
|
||||
Reference in New Issue
Block a user