Hi!
I have been using Silverbullet for some month now, replacing wiki-JS – and it’s just great – thank you so much for this and your work! It’s really no understatement what you say about Silverbullet being a silver bullet!
I have been toying with the API and managed to create an iOS shortcut to post / create new pages via “PUT”.
However: I can’t seem to make GET work to get the content of existing pages.
Whenever I request a file I’m getting “401 Unauthorized”.
e.G. with curl
curl --request GET \
--url https://sb.example.com/path/to/myfile.md \
--header 'Authorization: Bearer ######!'
Requesting without the file-extensions works and returns the SilverBullet UI HTML as mentioned in the docs.
curl --request GET \
--url https://sb.example.com/path/to/myfile \
--header 'Authorization: Bearer ######!'
What am I missing / doing wrong?
I’ve tested this with a clean fresh install which works perfectly in the browser, so everything else is fine (including PUT/DELETE */myfile.md
as well as GET /*
).