mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-05 22:08:27 +00:00
Declare the Copy API
This commit is contained in:
committed by
André Roth
parent
d8c1e432c6
commit
8114786179
@@ -414,6 +414,11 @@ func apiReposPackageFromDir(c *gin.Context) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// POST /repos/:name/copy/:src/:file
|
||||||
|
func apiReposCopyPackage(c *gin.Context) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
// POST /repos/:name/include/:dir/:file
|
// POST /repos/:name/include/:dir/:file
|
||||||
func apiReposIncludePackageFromFile(c *gin.Context) {
|
func apiReposIncludePackageFromFile(c *gin.Context) {
|
||||||
// redirect all work to dir method
|
// redirect all work to dir method
|
||||||
|
|||||||
@@ -116,6 +116,7 @@ func Router(c *ctx.AptlyContext) http.Handler {
|
|||||||
|
|
||||||
api.POST("/repos/:name/file/:dir/:file", apiReposPackageFromFile)
|
api.POST("/repos/:name/file/:dir/:file", apiReposPackageFromFile)
|
||||||
api.POST("/repos/:name/file/:dir", apiReposPackageFromDir)
|
api.POST("/repos/:name/file/:dir", apiReposPackageFromDir)
|
||||||
|
api.POST("/repos/:name/copy/:src/:file", apiReposCopyPackage)
|
||||||
|
|
||||||
api.POST("/repos/:name/include/:dir/:file", apiReposIncludePackageFromFile)
|
api.POST("/repos/:name/include/:dir/:file", apiReposIncludePackageFromFile)
|
||||||
api.POST("/repos/:name/include/:dir", apiReposIncludePackageFromDir)
|
api.POST("/repos/:name/include/:dir", apiReposIncludePackageFromDir)
|
||||||
|
|||||||
Reference in New Issue
Block a user