Reverting, as this change was making API LESS RESTful. My bad.

Revert "Make snapshot creation API more RESTful: accept snapshot name from URL. #116"

This reverts commit 06dc1ef9a4.
This commit is contained in:
Andrey Smirnov
2015-02-28 19:55:09 +03:00
parent 06dc1ef9a4
commit e33a2a6f96
3 changed files with 35 additions and 9 deletions
+2 -2
View File
@@ -37,11 +37,11 @@ func Router(c *ctx.AptlyContext) http.Handler {
root.POST("/repos/:name/file/:dir/:file", apiReposPackageFromFile)
root.POST("/repos/:name/file/:dir", apiReposPackageFromDir)
root.POST("/repos/:name/snapshots/:snapname", apiSnapshotsCreateFromRepository)
root.POST("/repos/:name/snapshots", apiSnapshotsCreateFromRepository)
}
{
root.POST("/mirrors/:name/snapshots/:snapname", apiSnapshotsCreateFromMirror)
root.POST("/mirrors/:name/snapshots", apiSnapshotsCreateFromMirror)
}
{