summaryrefslogtreecommitdiff
path: root/ui/lib/apiServer.js
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-07-01 14:24:36 -0400
committerOwen Jacobson <owen@grimoire.ca>2025-07-03 22:43:43 -0400
commit8d412732dc094ead3c5cf86c005d187f9624fc65 (patch)
tree321f4ec443a8005c0bf3001c11e68eefe2bb4f48 /ui/lib/apiServer.js
parenta15e3d580124f561864c6a39f1e035eb1b3aab13 (diff)
Replace `channel` with `conversation` throughout the API.
This is a **breaking change** for essentially all clients. Thankfully, there's presently just the one, so we don't need to go to much effort to accommoate that; the client is modified in this commit to adapt, users can reload their client, and life will go on.
Diffstat (limited to 'ui/lib/apiServer.js')
-rw-r--r--ui/lib/apiServer.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/lib/apiServer.js b/ui/lib/apiServer.js
index 397638c..1bca6f6 100644
--- a/ui/lib/apiServer.js
+++ b/ui/lib/apiServer.js
@@ -28,11 +28,11 @@ export async function changePassword(password, to) {
}
export async function createChannel(name) {
- return await apiServer.post('/channels', { name }).catch(responseError);
+ return await apiServer.post('/conversations', { name }).catch(responseError);
}
export async function postToChannel(channelId, body) {
- return await apiServer.post(`/channels/${channelId}`, { body }).catch(responseError);
+ return await apiServer.post(`/conversations/${channelId}`, { body }).catch(responseError);
}
export async function deleteMessage(messageId) {