This commit is contained in:
Jay
2018-05-08 16:35:09 +08:00
parent fe884e6931
commit 59df5ce6a1
2 changed files with 18 additions and 9 deletions
+1 -1
View File
@@ -57,6 +57,6 @@ func SetDefaultRoutes(r *gin.Engine) {
}
photoAPI := albumAPI.Group("/:album/photo", context.PatchContext(middleware.VerifyToken), context.PatchContext(middleware.GetAlbumToNext))
{
photoAPI.GET("/", context.PatchContext(album.GetPhoto))
photoAPI.GET("/", context.PatchContext(album.GetAlbumPhotos))
}
}