update
This commit is contained in:
@@ -55,4 +55,8 @@ func SetDefaultRoutes(r *gin.Engine) {
|
||||
albumAPI.PUT("/:id", context.PatchContext(album.UpdateAlbum))
|
||||
albumAPI.DELETE("/:id", context.PatchContext(album.DeleteAlbum))
|
||||
}
|
||||
photoAPI := albumAPI.Group("/:album/photo", context.PatchContext(middleware.VerifyToken), context.PatchContext(middleware.GetAlbumToNext))
|
||||
{
|
||||
photoAPI.GET("/", context.PatchContext(album.GetPhoto))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user