mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
API: Add Swagger annotations #2132
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -59,7 +59,8 @@ func UpdateLabel(router *gin.RouterGroup) {
|
||||
//
|
||||
// - uid: string Label UID
|
||||
//
|
||||
// POST /api/v1/labels/:uid/like
|
||||
// @Tags Links
|
||||
// @Router /api/v1/labels/{uid}/like [post]
|
||||
func LikeLabel(router *gin.RouterGroup) {
|
||||
router.POST("/labels/:uid/like", func(c *gin.Context) {
|
||||
s := Auth(c, acl.ResourceLabels, acl.ActionUpdate)
|
||||
|
||||
Reference in New Issue
Block a user