mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-15 10:07:24 +00:00
Publish repo REST API. #116
This commit is contained in:
1 parent
6e32e3dcf4
commit
98ca0cdf33
4 files changed
+242
No files matched your search
@@ -39,5 +39,13 @@ func Router(c *ctx.AptlyContext) http.Handler {
|
||||
root.DELETE("/files/:dir/:name", apiFilesDeleteFile)
|
||||
}
|
||||
|
||||
{
|
||||
root.GET("/publish", apiPublishList)
|
||||
root.POST("/publish/:prefix/repos", apiPublishRepoOrSnapshot)
|
||||
root.POST("/publish/:prefix/snapshots", apiPublishRepoOrSnapshot)
|
||||
root.PUT("/publish/:prefix/:distribution", apiPublishUpdateSwitch)
|
||||
root.DELETE("/publish/:prefix/:distribution", apiPublishDrop)
|
||||
}
|
||||
|
||||
return router
|
||||
}
|
||||
Reference in new issue
Block a user