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

Static file serving #15

Merged
merged 23 commits into from
May 13, 2023
Merged

Static file serving #15

merged 23 commits into from
May 13, 2023

Conversation

evg4b
Copy link
Owner

@evg4b evg4b commented Apr 30, 2023

Configuration:

mappings:
  - http://*.com: https://api.*.com
     statics:
       /path: ./public
       /another-path: ~/another-static-dir

@sonarcloud
Copy link

sonarcloud bot commented May 13, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

90.3% 90.3% Coverage
0.0% 0.0% Duplication

@evg4b evg4b merged commit 4b7a562 into develop May 13, 2023
@evg4b evg4b deleted the static-file-serving branch May 13, 2023 17:46
@evg4b evg4b added the enhancement New feature or request label May 27, 2023
evg4b pushed a commit that referenced this pull request Jun 3, 2023
* Update dependencies

* Custom config mapping (#13)

* Created config mapping draft

* Reafactoring

* Simplify

* Use new url mapping in applocation

* Fixed method name

* Updated readme

* Reafactoring

* Move all structures to configuration

* Static file serving (#15)

* Created configuration structure

* Covered decoding by tests

* Fixed configuration decoding issues

* Created static directory mapping

* Fixed cloning issue

* Added tests for static serving

* Added static dirs pringing

* Changed handler structure

* Added static middleware draft

* Fixed index file serving

* Added base tests for static middleware

* Fixed mapping tests

* Fixed middelware tesrs

* Added tests fro normalise helper

* Added tests for uncors handler

* Added tests for index file

* Added tests for mocks

* Enabled skipped tests

* Added fir for prefix cutting

* Fixed error handling

* Added tests for mocks handler registration

* Fixed sonar issues

* Updated readme

* Update README.md

* Added new error page

* Update roadmap

* Rename configuration module to config

* Rename infrastructure module to infra

* Updated Roadmap

* Updated README.md

* Separated mock for each url mapping (#16)

* Created draft

* Fixed tests

* Reorganised structure

* Fixed lint issues

* Updated mapping formatting

* Fixed tests

* Added CloneMap helper

* Move NormaliseMappings to config package

* Added tests for config models

* Cleanup code

* Cleanup code

* Changed correct errors message ordering

* Added helpers.CloseSafe method

* Fixed mock waiting issue

* Updated packages

* Refactor debug output for logger

* Refactored code

* Added tests for sfmt package

* Added short commands

* Renamed config property raw-content to raw

* Cleared test output

* Cleanup code: WIP 1

* Cleanup code: WIP 2

* Cleanup code: WIP 3

* Cleanup code: WIP 4

* Updated README.md

* Cleanup code: WIP 4
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