import { http } from './http' export interface ChatMessage { id: number spotId: number | null matchId: number | null senderId: number senderNickname: string content: string createdAt: string } export const chatApi = { history: (spotId: number) => http.get(`/api/chat/spots/${spotId}/messages`), matchHistory: (matchId: number) => http.get(`/api/chat/matches/${matchId}/messages`), }