pyotr icon indicating copy to clipboard operation
pyotr copied to clipboard

[server] Automatically add OPTIONS method alongside any other method

Open berislavlopac opened this issue 4 years ago • 0 comments

Is your feature request related to a problem? Please describe. CORS requires an OPTIONS request to be sent before an actual request to an endpoint.

Describe the solution you'd like It might be useful to have pyotr server automatically create an additional OPTION endpoint for each operation, which would return the operation spec.

Additional context It might be an app-wide setting, on by default

berislavlopac avatar Apr 22 '20 17:04 berislavlopac