make REST api more restful

This commit is contained in:
André Roth
2024-10-03 14:33:52 +02:00
parent a3078fa93e
commit 06b2b920da
3 changed files with 17 additions and 25 deletions
+1 -1
View File
@@ -201,7 +201,7 @@ func Router(c *ctx.AptlyContext) http.Handler {
api.DELETE("/snapshots/:name", apiSnapshotsDrop)
api.GET("/snapshots/:name/diff/:withSnapshot", apiSnapshotsDiff)
api.POST("/snapshots/merge", apiSnapshotsMerge)
api.POST("/snapshots/pull", apiSnapshotsPull)
api.POST("/snapshots/:name/pull", apiSnapshotsPull)
}
{