I am making an ASP.NET Core MVC project. I have a HomeController set up, I have the Views folder with the Home and Shared folders set up, and inside those I have the appropriate .cshtml files (such as Index.cshtml, _Layout.cshtml, and _ViewStart.cshtml). I also have a PartialViews folder which has a bunch of HTML files (not .cshtml files).
All I want to do is make an Ajax get request from the browser for an HTML file in the PartialViews folder (which, just to be clear, has the path MyProject\Areas\MyArea\PartialViews\SomeDoc.html). I know that if this HTML file were in the wwwroot folder (where static files are kept -- I am also using this) I could just make a get request to the url 'localhost/SomeDoc.html'. But it's not under wwwroot, so I guess I have to go through the HomeController I defined in MyArea? I'm not sure how to format the get request so that return View() in HomeController.Index() knows to fetch and return the html file in the specified folder path. I've tried this url: 'localhost/MyArea/Home/PartialViews/SomeDoc.html', though that just returns a 404.
ASP.NET Core docs pertaining to MVC don't really seem to address this unless I'm misunderstanding them. Another thing I'm not sure about is whether these HTML files in this PartialViews folder are supposed to be used like this article on using partial views with MVC describes. I'm confused because the article (a) only references .cshtml files (whereas I just have html files), and (b) doesn't explain how to format the request for the view (unless, again, I'm missing something).