Skip to content

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

@irusland

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.

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