swifter icon indicating copy to clipboard operation
swifter copied to clipboard

Serving an entire directory

Open kiwifruituk opened this issue 4 years ago • 1 comments

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!

kiwifruituk avatar Dec 03 '21 14:12 kiwifruituk

@kiwifruituk did you get any solution ?

vaghasiya avatar Dec 30 '22 07:12 vaghasiya