diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-05-08 18:45:16 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-05-08 18:45:16 +0300 |
commit | ca5c912de08221c1e1087190a24f4d630f0ccb98 (patch) | |
tree | bed745921de7b99fab8316db3efe81e55cdb3a45 | |
parent | 724d6298554c5fecfe7ee1a971de00cb0bfa6fde (diff) |
Use ETag for file save status
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | appinfo/database.xml | 10 | ||||
-rw-r--r-- | appinfo/info.xml | 2 | ||||
-rw-r--r-- | appinfo/routes.php | 2 |
3 files changed, 12 insertions, 2 deletions
diff --git a/appinfo/database.xml b/appinfo/database.xml index cf9a6292f..95d1ccc52 100644 --- a/appinfo/database.xml +++ b/appinfo/database.xml @@ -37,6 +37,16 @@ <unsigned>true</unsigned> <length>4</length> </field> + <field> + <name>last_saved_version_etag</name> + <type>text</type> + <length>64</length> + </field> + <field> + <name>base_version_etag</name> + <type>text</type> + <length>64</length> + </field> </declaration> </table> diff --git a/appinfo/info.xml b/appinfo/info.xml index 4804cdd59..c603c65f5 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -5,7 +5,7 @@ <name>Text</name> <summary>Type together</summary> <description>Collaborative text editor</description> - <version>0.1.0-dev13</version> + <version>0.1.0-dev14</version> <licence>agpl</licence> <author mail="jus@bitgrid.net">Julius Härtl</author> <namespace>Text</namespace> diff --git a/appinfo/routes.php b/appinfo/routes.php index 29b92263b..d0bf8c9fd 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -12,7 +12,7 @@ return [ // Load initial document ['name' => 'Session#fetch', 'url' => '/session/fetch', 'verb' => 'GET'], // Load steps - ['name' => 'Session#sync', 'url' => '/session/sync', 'verb' => 'GET'], + ['name' => 'Session#sync', 'url' => '/session/sync', 'verb' => 'POST'], // Push own steps ['name' => 'Session#push', 'url' => '/session/push', 'verb' => 'POST'], // Close session |