forked from isso-comments/isso
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
isso: js, py: Fetch public conf once from /config
This is an improvement on top of: 02f3ea0 "Have client read out shared settings from server (isso-comments#311)" So far, the `config` dict was being sent with the server response when fetching comments from the `fetch()` `/` (GET) endpoint. Create new endpoint at `/config`, which will serve a JSON representation of the server's `public_conf`. Also remove the `config` object from `fetch()` responses. Extend the JS client api file to fetch from the `/config` endpoint, which will only happen once via the `fetchComments` hook on page load.
- Loading branch information
Showing
3 changed files
with
87 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters