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

@@ -30,7 +30,8 @@ const (
// StartImport imports media files from a directory and converts/indexes them as needed.
//
// POST /api/v1/import*
// @Tags Library
// @Router /api/v1/import/{path} [post]
func StartImport(router *gin.RouterGroup) {
router.POST("/import/*path", func(c *gin.Context) {
s := AuthAny(c, acl.ResourceFiles, acl.Permissions{acl.ActionManage, acl.ActionUpload})