MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / handleGet

Method handleGet

server/mcp/handler.go:87–94  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

85}
86
87func (s *Server) handleGet(c *gin.Context) {
88 if !validateOrigin(c.Request) {
89 c.Status(http.StatusForbidden)
90 return
91 }
92 c.Header("Allow", "POST, DELETE")
93 c.Status(http.StatusMethodNotAllowed)
94}
95
96func (s *Server) handlePost(c *gin.Context) {
97 if !validateOrigin(c.Request) {

Callers 1

Calls 3

validateOriginFunction · 0.85
HeaderMethod · 0.80
StatusMethod · 0.65

Tested by 1