(y-provider) endpoint POST /collaboration/api/reset-connections

We want to be able to reset the connections of a document.
To do this, we need to be able to send a
request to the collaboration server.
To do so, we added the endpoint
POST "/collaboration/api/reset-connections"
to the collaboration server thanks to "express".
This commit is contained in:
Anthony LC
2024-11-28 17:00:06 +01:00
committed by Anthony LC
parent 2cba228a67
commit ba1cfc3c27
11 changed files with 661 additions and 23 deletions

View File

@@ -6,7 +6,7 @@
"license": "MIT",
"type": "module",
"scripts": {
"build": "tsc -p .",
"build": "tsc -p ./src",
"dev": "nodemon --config nodemon.json",
"start": "node ./dist/server.js",
"lint": "eslint . --ext .ts"
@@ -16,9 +16,13 @@
},
"dependencies": {
"@hocuspocus/server": "2.14.0",
"express": "4.21.1",
"express-ws": "5.0.2",
"y-protocols": "1.0.6"
},
"devDependencies": {
"@types/express": "5.0.0",
"@types/express-ws": "3.0.5",
"@types/node": "*",
"eslint-config-impress": "*",
"nodemon": "3.1.7",