refactor express to use routes

This commit is contained in:
Daniel Avila 2023-02-12 16:38:33 -05:00
parent cd71bb0727
commit ed44daf8b3
11 changed files with 157 additions and 128 deletions

View file

@ -14,7 +14,7 @@ export default function Conversation({ id, parentMessageId, conversationId, titl
const inputRef = useRef(null);
const dispatch = useDispatch();
const { trigger, isMutating } = manualSWR(`http://localhost:3050/messages/${id}`, 'get');
const rename = manualSWR(`http://localhost:3050/update_convo`, 'post');
const rename = manualSWR(`http://localhost:3050/convos/update`, 'post');
const clickHandler = async () => {
if (conversationId === id) {