ipkn / crow

Crow is very fast and easy to use C++ micro web framework (inspired by Python Flask)
BSD 3-Clause "New" or "Revised" License
7.46k stars 889 forks source link

Is there any alternatives to Flask send_from_directory? #359

Open peterylo opened 4 years ago

peterylo commented 4 years ago

Hi, I now successfully hosted a page with crow. However are there any existing alternatives like send_from_directory in Flask so as to read static files in a more convenient way? Thanks!

mrozigor commented 4 years ago

Maybe something like loadFile (https://github.com/mrozigor/mrozigor.net/blob/master/src/controllers/ResourcesController.cpp)?

The-EDev commented 3 years ago

You can check this out as well, I added the code to send a file + an example on how to send the file.