From dcde1bd5ba11a1071c575e3a3cf382eed3d37041 Mon Sep 17 00:00:00 2001 From: valadaptive Date: Wed, 6 Dec 2023 12:11:57 -0500 Subject: [PATCH] Redirect deprecated chat endpoints --- server.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/server.js b/server.js index ef95504a4..c427f4c8c 100644 --- a/server.js +++ b/server.js @@ -2236,6 +2236,18 @@ redirect('/importcharacter', '/api/characters/import'); redirect('/dupecharacter', '/api/characters/duplicate'); redirect('/exportcharacter', '/api/characters/export'); +// Redirect deprecated chat API endpoints +redirect('/savechat', '/api/chats/save'); +redirect('/getchat', '/api/chats/get'); +redirect('/renamechat', '/api/chats/rename'); +redirect('/delchat', '/api/chats/delete'); +redirect('/exportchat', '/api/chats/export'); +redirect('/importgroupchat', '/api/chats/group/import'); +redirect('/importchat', '/api/chats/import'); +redirect('/getgroupchat', '/api/chats/group/get'); +redirect('/deletegroupchat', '/api/chats/group/delete'); +redirect('/savegroupchat', '/api/chats/group/save'); + // ** REST CLIENT ASYNC WRAPPERS ** /**