openbttn
openbttn copied to clipboard
Development server always sends 404
Trying to run the development server always returns 404. The server is running, using the example command provided in README.md. I see the incoming GETs in the debug window, but browser always receives: 404 Not Found - OpenBttn Server. Have also tried entering the path to a file in the public/openbttn folder directly. Always same result. Using go 1.6.
Hi, there is no endpoint at /
, maybe that is why you're seeing 404?
You can see the available endpoints here:
https://github.com/mafredri/openbttn/blob/07311f95265f4e0803673897ba76f94691caec5a/cmd/openbttn/main.go#L173-L183
Hope that helps! 😄
So, e.g:
$ openbttn -public /path/to/openbttn/public
$ curl -vvv localhost:8774/public/openbttn/firstset.html
Should work.