Allow API creation of snapshots using package references

This commit is contained in:
Sylvain Baubeau
2014-12-18 18:17:43 +01:00
parent d847cba870
commit dd9fc8e40e
3 changed files with 58 additions and 5 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ func Router(c *ctx.AptlyContext) http.Handler {
{
root.GET("/snapshots", apiSnapshotsList)
root.POST("/snapshots", apiSnapshotsCreateEmpty)
root.POST("/snapshots", apiSnapshotsCreate)
root.PUT("/snapshots/:name", apiSnapshotsUpdate)
root.GET("/snapshots/:name", apiSnapshotsShow)
root.GET("/snapshots/:name/packages", apiSnapshotsSearchPackages)