8000 fastapi: root_path cannot contain a / · Issue #446 · OCA/rest-framework · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
fastapi: root_path cannot contain a / #446
Open
@sbidoul

Description

@sbidoul

I'd like to be able to use a root path such as /myapi/v1

This does not work because the fastapi dispatcher takes the first component of the url as the root path to search the endpoint

root_path = "/" + environ["PATH_INFO"].split("/")[1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0