In an effort to guarantee a cleanse separation involving your API code and UI code, you can be housing all your API routes throughout the app/api directory. By adopting this approach, you can effectively isolate your API-similar performance out of your consumer interface, promoting improved organization and maintainability.Web API Is solely an API