I have a razor page call "app" in the default Pages folder.
I can view this page just fine with http://myapp.com/app
Now I want to add a route parameter so the url looks like this:
http:/myapp.com/app/greg
I want to extract greg
from the URL and use it in the page.
So I tried this:
HttpGet("app/{name}")]
public void OnGet(string name)
{
//Do something with name.
}
But I get a 404 error.