ваше сообщение коммита

This commit is contained in:
2025-05-28 16:23:11 +03:00
parent 0c4eada515
commit 568f2615b9
10 changed files with 453 additions and 10 deletions

View File

@@ -0,0 +1,9 @@
import axios from 'axios';
export default {
async getMessagesByUserId(userId) {
if (!userId) return [];
const { data } = await axios.get(`/api/messages?userId=${userId}`);
return data;
}
};