mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
316be5ee34
Every time a JSON object is returned in an HTTP response, the appropriate header needs to be set and the object itself needs to be encoded. Doing this in every function is repetitive and error prone (getDBFile and postDBScan, for instance, never set any headers). This adds a helper function to centralize the appropriate JSON response handling. |
||
---|---|---|
.. | ||
stcompdirs | ||
stevents | ||
stfileinfo | ||
stfinddevice | ||
stindex | ||
stsigtool | ||
stwatchfile | ||
syncthing | ||
todos | ||
.gitignore |