mirror of
https://github.com/wisplite/raster.git
synced 2026-05-01 06:32:44 -05:00
refactor album access logic to handle guest users and improve state initialization in gallery components
This commit is contained in:
@@ -11,10 +11,6 @@ func RegisterAlbumRoutes(rg *gin.RouterGroup) {
|
||||
album := rg.Group("/albums")
|
||||
album.POST("/getAlbumsInParent", func(c *gin.Context) {
|
||||
accessToken := c.GetHeader("Authorization")
|
||||
if accessToken == "" {
|
||||
c.JSON(http.StatusUnauthorized, gin.H{"error": "Unauthorized"})
|
||||
return
|
||||
}
|
||||
var request struct {
|
||||
ParentID string `json:"parentId"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user