export const dynamic = 'force-dynamic'
put in route.js where your API need to fetch fresh data not cached data .
ex :