mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-20 10:57:09 +00:00
Make snapshot creation API more RESTful: accept snapshot name from URL. #116
This commit is contained in:
1 parent
4c57c358b7
commit
06dc1ef9a4
3 files changed
+9
-35
No files matched your search
+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