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