Skip to content
New issue

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

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

Already on GitHub? # to your account

Expose HTTP::StaticFileHandler #51

Open
icepaco opened this issue Nov 14, 2024 · 1 comment
Open

Expose HTTP::StaticFileHandler #51

icepaco opened this issue Nov 14, 2024 · 1 comment

Comments

@icepaco
Copy link

icepaco commented Nov 14, 2024

I would like to use the BakedFile in order to embed a static folder in the crystal exe. This way I can embed multiple clients that would be hosted with the server since their folders would be 'baked in' :)

@straight-shoota
Copy link
Collaborator

HTTP::StaticFileHandler works directly with an actual file system, so it cannot see baked files.
My recommendation would be to create a modified version of HTTP::StaticFileHandler which replaces the file system interaction to operate on the baked file system.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants