drogon
drogon copied to clipboard
How would I serve up a directory listing?
I'm looking for an embedded HTTP server that I can code in C++ , and among other things, be able to define a route that returns a directory listing from .../public/logs/ directory, for example. This directory will contain many *.csv files. The end goal is to allow a person to select one of the *.csv files and have the result navigate to another specific html file that parameterizes the file name so I can part and display csv file's content as needed.
Also please point where were it's explained how to upgrade to websocket.
Thanks
This framework does not provide directory and file traversal function, you need to implement it yourself, you could refer to the following project. https://github.com/bridge71/Share-the-Sky Websocket reference: https://github.com/drogonframework/drogon/wiki/ENG-04-3-Controller-WebSocketController