update
This commit is contained in:
1 parent
1b8416dba3
commit
e33c51727a
4 files changed
+106
-1
No files matched your search
@@ -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