mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
API: Improve form and tests for POST /batch/photos/edit endpoint #271
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -26,7 +26,7 @@ import (
|
||||
// @Param photos body batch.PhotosRequest true "photos selection and values"
|
||||
// @Router /api/v1/batch/photos/edit [post]
|
||||
func BatchPhotosEdit(router *gin.RouterGroup) {
|
||||
router.POST("/batch/photos/edit", func(c *gin.Context) {
|
||||
router.Match(MethodsPutPost, "/batch/photos/edit", func(c *gin.Context) {
|
||||
s := Auth(c, acl.ResourcePhotos, acl.ActionUpdate)
|
||||
|
||||
if s.Abort(c) {
|
||||
|
||||
Reference in New Issue
Block a user