mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
readme update, code uncomment
This commit is contained in:
11
README.md
11
README.md
@@ -113,6 +113,17 @@ the public key.
|
||||
To start syncing user \#1 should perform a get request to `/syncp2pdata`. Received new questions are
|
||||
automatically sent to registered peers.
|
||||
|
||||
`/syncp2pdata` accepts a few query parameters:
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| allTime | boolean | If it should ignore the last sync date, and get all data |
|
||||
| users | boolean | If it should sync users |
|
||||
| questions | boolean | If it should sync questions |
|
||||
|
||||
If `users` and `questions` are all missing, then everything will be synced. The last sync date is
|
||||
stored separately for them.
|
||||
|
||||
If the peer doesn't have a https server (only http) then `http: true` should be specified in
|
||||
`peers.json`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user