Stubs for API calls. #116

This commit is contained in:
Andrey Smirnov
2014-10-23 00:41:24 +04:00
parent b1053826e3
commit 6a9db17460
2 changed files with 19 additions and 0 deletions

View File

@@ -178,3 +178,18 @@ func apiReposPackagesShow(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) {
}

View File

@@ -25,6 +25,10 @@ func Router(c *ctx.AptlyContext) http.Handler {
root.GET("/repos/:name/packages", apiReposPackagesShow)
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)
}
{