Feature: Add Pull Snapshot API

This commit is contained in:
Mauro Regli
2023-03-13 08:55:54 +01:00
committed by André Roth
parent aff7b0db50
commit af5b04b24f
4 changed files with 337 additions and 2 deletions
+2
View File
@@ -184,6 +184,7 @@ func Router(c *ctx.AptlyContext) http.Handler {
}
{
api.GET("/publish", apiPublishList)
api.POST("/publish", apiPublishRepoOrSnapshot)
api.POST("/publish/:prefix", apiPublishRepoOrSnapshot)
@@ -200,6 +201,7 @@ func Router(c *ctx.AptlyContext) http.Handler {
api.DELETE("/snapshots/:name", apiSnapshotsDrop)
api.GET("/snapshots/:name/diff/:withSnapshot", apiSnapshotsDiff)
api.POST("/snapshots/merge", apiSnapshotsMerge)
api.POST("/snapshots/pull", apiSnapshotsPull)
}
{