photoprism/internal/server/methods.go
Michael Mayer 838adee3eb Backend: Refactor middleware naming and improve code comments #5235
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-09-30 23:25:53 +02:00

19 lines
472 B
Go

package server
// Canonical HTTP and WebDAV method names reused across handlers.
const (
MethodHead = "HEAD"
MethodGet = "GET"
MethodPut = "PUT"
MethodPost = "POST"
MethodPatch = "PATCH"
MethodDelete = "DELETE"
MethodOptions = "OPTIONS"
MethodMkcol = "MKCOL"
MethodCopy = "COPY"
MethodMove = "MOVE"
MethodLock = "LOCK"
MethodUnlock = "UNLOCK"
MethodPropfind = "PROPFIND"
MethodProppatch = "PROPPATCH"
)