mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-20 10:57:09 +00:00
Stubs for API calls. #116
This commit is contained in:
1 parent
b1053826e3
commit
6a9db17460
2 files changed
+19
No files matched your search
@@ -178,3 +178,18 @@ func apiReposPackagesShow(c *gin.Context) {
|
|||||||
func apiReposPackagesAdd(c *gin.Context) {
|
func apiReposPackagesAdd(c *gin.Context) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DELETE /repos/:name/packages
|
||||||
|
func apiReposPackagesDelete(c *gin.Context) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// POST /repos/:name/file/:dir/:file
|
||||||
|
func apiReposPackageFromFile(c *gin.Context) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// POST "/repos/:name/file/:dir
|
||||||
|
func apiReposPackageFromDir(c *gin.Context) {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -25,6 +25,10 @@ func Router(c *ctx.AptlyContext) http.Handler {
|
|||||||
|
|
||||||
root.GET("/repos/:name/packages", apiReposPackagesShow)
|
root.GET("/repos/:name/packages", apiReposPackagesShow)
|
||||||
root.POST("/repos/:name/packages", apiReposPackagesAdd)
|
root.POST("/repos/:name/packages", apiReposPackagesAdd)
|
||||||
|
root.DELETE("/repos/:name/packages", apiReposPackagesDelete)
|
||||||
|
|
||||||
|
root.POST("/repos/:name/file/:dir/:file", apiReposPackageFromFile)
|
||||||
|
root.POST("/repos/:name/file/:dir", apiReposPackageFromDir)
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user