Sync from and to server

This commit is contained in:
Magnus Åhall 2025-01-12 12:21:49 +01:00
parent e07258e014
commit 25179ffd15
6 changed files with 125 additions and 76 deletions

View file

@ -124,7 +124,8 @@ func main() { // {{{
http.HandleFunc("/user/authenticate", AuthManager.AuthenticationHandler)
http.HandleFunc("/sync/node/{sequence}/{offset}", authenticated(actionSyncNode))
http.HandleFunc("/sync/from_server/{sequence}/{offset}", authenticated(actionSyncNode))
http.HandleFunc("/sync/to_server/{client}", authenticated(actionSyncNode))
http.HandleFunc("/node/retrieve/{uuid}", authenticated(actionNodeRetrieve))