wings/router
Dane Everitt 5764894a5e
Cleanup server sync logic to work in a single consistent format (#101)
* Cleanup server sync logic to work in a single consistent format

Previously we had a mess of a function trying to update server details from a patch request. This change just centralizes everything to a single Sync() call when a server needs to update itself.

We can also eventually update the panel (in V2) to not hit the patch endpoint, rather it can just be a generic endpoint that is hit after a server is updated on the Panel that tells Wings to re-sync the data to get the environment changes on the fly.

The changes I made to the patch function currently act like that, with a slightly fragile 2 second wait to let the panel persist the changes since I don't want this to be a breaking change on that end.

* Remove legacy server patch endpoint; replace with simpler sync endpoint
2021-08-29 13:37:18 -07:00
..
downloader downloader: fix internal range check 2021-08-02 15:16:38 -06:00
middleware break everything 2021-08-02 15:07:00 -06:00
tokens break everything 2021-08-02 15:07:00 -06:00
websocket break everything 2021-08-02 15:07:00 -06:00
error.go break everything 2021-08-02 15:07:00 -06:00
middleware.go break everything 2021-08-02 15:07:00 -06:00
router_download.go break everything 2021-08-02 15:07:00 -06:00
router_server_backup.go break everything 2021-08-02 15:07:00 -06:00
router_server_files.go Add deprecation flag on the directory, don't remove it entirely 2021-08-02 20:15:25 -07:00
router_server_ws.go break everything 2021-08-02 15:07:00 -06:00
router_server.go Cleanup server sync logic to work in a single consistent format (#101) 2021-08-29 13:37:18 -07:00
router_system.go break everything 2021-08-02 15:07:00 -06:00
router_transfer.go break everything 2021-08-02 15:07:00 -06:00
router.go Cleanup server sync logic to work in a single consistent format (#101) 2021-08-29 13:37:18 -07:00