Added mirror api based on task list

This commit is contained in:
Oliver Sauder
2017-05-22 11:54:18 +02:00
committed by Lorenzo Bolla
parent 6ab5e60833
commit d7ccf95499
4 changed files with 792 additions and 0 deletions
+9
View File
@@ -78,6 +78,15 @@ func Router(c *ctx.AptlyContext) http.Handler {
root.POST("/mirrors/:name/snapshots", apiSnapshotsCreateFromMirror)
}
{
root.GET("/mirrors", apiMirrorsList)
root.GET("/mirrors/:name", apiMirrorsShow)
root.GET("/mirrors/:name/packages", apiMirrorsPackages)
root.POST("/mirrors", apiMirrorsCreate)
root.PUT("/mirrors/:name", apiMirrorsUpdate)
root.DELETE("/mirrors/:name", apiMirrorsDrop)
}
{
root.GET("/files", apiFilesListDirs)
root.POST("/files/:dir", apiFilesUpload)