i faced the same issue for a complete day, in my project i calles the path : /api/test and every time i tried to fire up the cron function i faced a 404.
when i changes the directory to /cron/test/route.js its finally worked!