drogon icon indicating copy to clipboard operation
drogon copied to clipboard

How would I serve up a directory listing?

Open timbo100 opened this issue 1 year ago • 1 comments

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

timbo100 avatar Apr 18 '24 23:04 timbo100

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

an-tao avatar Apr 19 '24 06:04 an-tao