mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-06 05:30:57 +00:00
Make snapshot creation API more RESTful: accept snapshot name from URL. #116
This commit is contained in:
+2
-2
@@ -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", apiSnapshotsCreateFromRepository)
|
||||
root.POST("/repos/:name/snapshots/:snapname", apiSnapshotsCreateFromRepository)
|
||||
}
|
||||
|
||||
{
|
||||
root.POST("/mirrors/:name/snapshots", apiSnapshotsCreateFromMirror)
|
||||
root.POST("/mirrors/:name/snapshots/:snapname", apiSnapshotsCreateFromMirror)
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user