openbttn icon indicating copy to clipboard operation
openbttn copied to clipboard

Development server always sends 404

Open morgansimonsen opened this issue 6 years ago • 2 comments

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.

morgansimonsen avatar May 01 '18 17:05 morgansimonsen

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! 😄

mafredri avatar May 01 '18 20:05 mafredri

So, e.g:

$ openbttn -public /path/to/openbttn/public
$ curl -vvv localhost:8774/public/openbttn/firstset.html

Should work.

mafredri avatar May 01 '18 20:05 mafredri