import type { MilitarySituation } from '@/data/mockData'

export async function fetchSituation(): Promise<MilitarySituation> {
  const res = await fetch(`/api/situation?t=${Date.now()}`, { cache: 'no-store' })
  if (!res.ok) throw new Error(`API error: ${res.status}`)
  return res.json()
}
