Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for gui config on the api #65

Open
RikudouSage opened this issue Feb 21, 2024 · 0 comments
Open

Add support for gui config on the api #65

RikudouSage opened this issue Feb 21, 2024 · 0 comments

Comments

@RikudouSage
Copy link

RikudouSage commented Feb 21, 2024

As discussed on Matrix, an endpoint that allows returning and storing arbitrary JSON data that can be used by the GUI would be great.

That would allow:

  • storing your synchronization settings across all browsers you're logged in
  • storing your filter preference for the various filters in the gui across browsers
  • displaying a list of the censures you actually synchronize (including the other instances you fetch your lists from)

Endpoints:

  • GET /config/gui - returns the JSON
  • POST /config/gui - stores the JSON
  • GET /config/gui/{instance} - returns the JSON for the particular instance. I imagine it would be best to have this available on an opt-in basis, meaning if you don't allow displaying this publicly, it would return 404.

Edit: As discussed, 10 kiB of data seems more than enough currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant