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

Add static file server to http service #480

Merged
merged 6 commits into from
Aug 4, 2023
Merged

Conversation

sandreae
Copy link
Member

@sandreae sandreae commented Aug 2, 2023

Use https://docs.rs/tower-http/latest/tower_http/services/struct.ServeDir.html# to add a static file server to the http service which serves content from $HOME/.local/share/aquadoggo/blobs by default.

📋 Checklist

  • Add tests that cover your changes
  • Add this PR to the Unreleased section in CHANGELOG.md
  • Link this PR to any issues it closes
  • New files contain a SPDX license header

@codecov
Copy link

codecov bot commented Aug 4, 2023

Codecov Report

Patch coverage: 96.42% and no project coverage change.

Comparison is base (d5ba55d) 91.95% compared to head (2b400ef) 91.96%.

Additional details and impacted files
@@           Coverage Diff           @@
##            blobs     #480   +/-   ##
=======================================
  Coverage   91.95%   91.96%           
=======================================
  Files         100      100           
  Lines       15914    15935   +21     
=======================================
+ Hits        14634    14654   +20     
- Misses       1280     1281    +1     
Files Changed Coverage Δ
aquadoggo/src/config.rs 46.93% <80.00%> (+3.75%) ⬆️
aquadoggo/src/graphql/mutations/publish.rs 98.68% <100.00%> (ø)
aquadoggo/src/http/context.rs 100.00% <100.00%> (ø)
aquadoggo/src/http/service.rs 98.80% <100.00%> (+0.21%) ⬆️
aquadoggo/src/test_utils/client.rs 76.47% <100.00%> (ø)

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sandreae sandreae merged commit 37a0ef5 into blobs Aug 4, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant