Assume base_url is the API url, not the bare domain #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
I don't know if I'm right here - but I was confused that
miniflux.app
has/v1/
already appended to the API Endpoint when you make an api key:But writing that into
~/.config/cliflux/config.toml
causes this error in cliflux:note
/v1/v1/
in the formatted url.What this PR does to fix it
/v1/
s in the 3 places in the code it's referenced.Bonuses
rust-toolchain
file set tostable
, as there are some wild issues with error[E0635]: unknown featurestdsimd
tkaitchuck/aHash#200 that can be sidestepped by building on stable. I'm not sure if this is helpful, let me know if I should remove it from this PR.Rationale
This of course could easily be fixed by removing
/v1/
in the config file when you paste in your base_url, but I think the assumption is wrong:base_url
should be the API base, not the bare domain, I think?Thank you!