Skip to content

Additional info from router (Including headers) does not pass to custom handlers #3

Description

@irusland

with configuration like this:

...
    "/ping": {
      "handler": {
        "source": "handlers/api.py",
        "get": "get"
      },
      "headers": [
        ["Access-Control-Allow-Origin", "http://localhost:3000"]
      ]
    }
...

in handlers/api.py its impossible to get ["Access-Control-Allow-Origin", "http://localhost:3000"] without parsing config again.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions