the api route is now working