API: Update swagger endpoint documentation #5133

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-08-28 11:00:19 +02:00
parent b1eda7abe1
commit 8337eb268c
2 changed files with 4 additions and 12 deletions

View File

@@ -10,8 +10,8 @@ import (
//
// @Summary returns CORS headers with an empty response body
// @Description A preflight request is automatically issued by a browser and in normal cases, front-end developers don't need to craft such requests themselves. It appears when request is qualified as "to be preflighted" and omitted for simple requests.
// @Id CORS
// @Tags API
// @Id Options
// @Tags CORS
// @Success 204
// @Router /api/v1/{any} [options]
func Options(router *gin.RouterGroup) {