Website 1: test.page.com/News
Website 2: www.page.com/News
Website 3: m.site.com/News
Hi, I'm calling pageapi.
Web Api url: http://www.pageapi.com/api/GetNews
How can I get the website url ( http://m.site.com/ ) in my getnews api controller? On which page is the api post published?
I am trying Url.Request, Request.RequestUri, HttpContext.Current.Request.Path. But I did not understand. Always get web api url.
source
share