Rename character API endpoints

Precursor to moving the character API into its own module
This commit is contained in:
valadaptive
2023-12-04 06:51:45 -05:00
parent 45730d4766
commit b689b8bd30
4 changed files with 29 additions and 29 deletions

View File

@ -42,7 +42,7 @@ async function getExistingChatNames() {
const data = await getGroupPastChats(selected_group);
return data.map(x => x.file_name);
} else {
const response = await fetch('/getallchatsofcharacter', {
const response = await fetch('/api/characters/chats', {
method: 'POST',
headers: getRequestHeaders(),
body: JSON.stringify({ avatar_url: characters[this_chid].avatar }),