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:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user