import client from './client'
import type { FeedResponse } from '@/types'

export const feedApi = {
  get: async (marathonId: number, limit = 20, offset = 0): Promise<FeedResponse> => {
    const response = await client.get<FeedResponse>(`/marathons/${marathonId}/feed`, {
      params: { limit, offset },
    })
    return response.data
  },
}
