API: Add Swagger annotations #2132

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2024-07-16 12:05:55 +02:00
parent f1f4853190
commit 428d57e71e
26 changed files with 100 additions and 52 deletions

View File

@@ -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)