Skip to content

Comments

Asset handling improvements#289

Open
MrFaul wants to merge 2 commits intotomaka:masterfrom
MrFaul:asset-handling-improvements
Open

Asset handling improvements#289
MrFaul wants to merge 2 commits intotomaka:masterfrom
MrFaul:asset-handling-improvements

Conversation

@MrFaul
Copy link

@MrFaul MrFaul commented Sep 21, 2024

Added some additional functionality to assets.rs
This should make it easier to implement some common tasks with less boilerplate.
e.g. #279

Also updated the static files example and some documentation to include the new functionality.

This shouldn't break anything, but please do a sanity check anyway.
Otherwise it's pretty much harmless and could be merged without much fuss.

Cheers Faul

deconstructed match_asset to internally use serve_asset
made slight changes to documentation
imported new functionality to lib.rs
added hint to serve_asset to response::from_file documentation
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.

1 participant