Skip to content

RouteTableDef can't register OPTIONS request handlers #4663

Closed
@meetmangukiya

Description

🐞 Describe the bug
Currently it gives an AttributeError: 'RouteTableDef' object has no attribute 'options'

💡 To Reproduce

@route.options('/path')
def opts(request):
   ...

💡 Expected behavior
It should register decorated function as the OPTIONS request handler for that path

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions