mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
API: Add OPTIONS wildcard handler to serve CORS preflight requests #5133
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -75,7 +75,7 @@ func findFileMarker(c *gin.Context) (file *entity.File, marker *entity.Marker, e
|
||||
//
|
||||
// See internal/form/marker.go for the values required to create a new marker.
|
||||
//
|
||||
// @Tags Files
|
||||
// @Tags Files
|
||||
// @Router /api/v1/markers [post]
|
||||
func CreateMarker(router *gin.RouterGroup) {
|
||||
router.POST("/markers", func(c *gin.Context) {
|
||||
|
||||
Reference in New Issue
Block a user