MCPcopy Create free account
hub / github.com/dimonomid/geekmarks / createOptionsHandler

Method createOptionsHandler

server/server/server.go:162–169  ·  view source on GitHub ↗

createOptionsHandler creates an endpoint handler for the OPTIONS method: the handler will set a few headers: Access-Control-Allow-Headers, Access-Control-Max-Age, and Access-Control-Allow-Methods with the provided methods.

(methods ...string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

setupUserAPIEndpointsMethod · 0.95
setupAuthAPIEndpointsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected