My code for serving static files is
router.all("/static", middleware: StaticFileServer(path: "./public"))
The public shares a parent folder with the Sources folder in my package. I also setup a Xcode build-phase for copying the public folder to the same folder where the built executable goes to. However I can't access from the browser the file "http://ift.tt/2l5utyA"
The doc is not very clear to me. Did I miss something?
Aucun commentaire:
Enregistrer un commentaire