Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

How would I serve up a directory listing? #2007

Open
timbo100 opened this issue Apr 18, 2024 · 1 comment
Open

How would I serve up a directory listing? #2007

timbo100 opened this issue Apr 18, 2024 · 1 comment

Comments

@timbo100
Copy link

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

@an-tao
Copy link
Member

an-tao commented Apr 19, 2024

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

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

No branches or pull requests

2 participants