samedi 18 février 2017

Kitura cannot get static files (HTTP 404 error)

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