altering api route to use next() instead of echoing 404...