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

Serving an entire directory #512

Open
kiwifruituk opened this issue Dec 3, 2021 · 1 comment
Open

Serving an entire directory #512

kiwifruituk opened this issue Dec 3, 2021 · 1 comment

Comments

@kiwifruituk
Copy link

Would you be able to clarify how to serve up a directory (with subfolders and files of multiple types)? I'm currently using Telegraph and use the following (for brevity some code has been omitted):

var webServer = Server()
webServer.serveDirectory(directoryURLToServe)
try webServer.start(port: Constants.port, interface: Constants.host)

Any help would be appreciated!

@vaghasiya
Copy link

@kiwifruituk did you get any solution ?

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