add delete album

This commit is contained in:
Jay
2018-04-25 17:10:29 +08:00
parent 0da02160f0
commit 1b8416dba3
3 changed files with 47 additions and 5 deletions
+1
View File
@@ -53,5 +53,6 @@ func SetDefaultRoutes(r *gin.Engine) {
albumAPI.POST("/", context.PatchContext(album.CreateAlbum))
albumAPI.GET("/:id", context.PatchContext(album.GetAlbum))
albumAPI.PUT("/:id", context.PatchContext(album.UpdateAlbum))
albumAPI.DELETE("/:id", context.PatchContext(album.DeleteAlbum))
}
}