Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL Rewriting #41

Merged
merged 15 commits into from
Dec 26, 2024
Merged

URL Rewriting #41

merged 15 commits into from
Dec 26, 2024

Conversation

evg4b
Copy link
Owner

@evg4b evg4b commented Dec 25, 2024

Added ability to rewrite some requests to different paths and hosts

mappings:
  - from: http://localhost
    to: https://github.com
    rewrite:
      - from: /demo/path/{test}/format/json
        to: /json-formatter/examples/{test}.json
        host: https://callumlocke.com
      - from: /fake
        to: /manifest.json

evg4b added 13 commits December 22, 2024 09:24
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
45.9% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@evg4b evg4b merged commit dbf71ed into develop Dec 26, 2024
3 of 4 checks passed
@evg4b evg4b deleted the url-rewriting branch December 26, 2024 14:37
evg4b added a commit that referenced this pull request Dec 26, 2024
* Added configuration struct

* Updated json shema

* Added validators

* Created base handler

* Added draft

* Fixed tests

* Changed rewrite method

* Added correct log events

* Added tests

* Fixed linter issues

* Updated git ignore

* Rename rewrite to rewrites

* Updated readme

* Fixed validators

* Added test
@evg4b evg4b added the enhancement New feature or request label Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant