I have a Visual Studio 2015 solution that contains an ASP.NET Core Web API along with an ASP.NET Core MVC application.
I intend to use the API in the MVC application, and they are both running at the same time.
For instance, the API is running on localhost:60170 and I have a controller routed to "api/[controller]" as follows:
namespace JobManager.WAPI.Controllers
{
[Route("api/[controller]")]
public class ValuesController : Controller
{
Now, how do I get the routes in my MVC application to the API, without hardcoding the path to the API, i.e. localhost:60170 ?