Skip to content

Variables in Path for Blocking #140

@CodeShellDev

Description

@CodeShellDev

Description

Currently when using /v1/receive/+123456789 the endpoints middleware won't match paths like v1/receive/{{.NUMBER}} since they haven't been templated yet.

To Reproduce

Steps to reproduce the behavior:

  1. Start Container
  2. Send Request with {{.VAR}} in Path
  3. Blocked Endpoint with +XYZ won't trigger since it only sees the literal {{.VAR}}

Expected behavior

Templating should happen before the Endpoints middleware.

Additional Context

This is due to templating beeing placed after the endpoints middleware in the proxy.go middlewares chain.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingneeds testingSomething needs testingpriority/highSomething is of high priorityscale/smallThis is a small change

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions