How to route Static Files Dynamically in Asp.Net & Asp.Net Core
Hi All, i have to build an application , which will have both static files & dynamic content to be displayed, how can i do this with Asp.Net Core & Asp.Net MVC
Example
I have site
http://dummy.com/
now there are some routes where i need to server its default content but depending on wether the request is from mobile or Desktop i need to change the files
Ex : http://dummy.com/category1
index.html
index-m.html
in this category1 has a folder & in the site and it has two static files like above
now when there is a request for "http://dummy.com/category1" i have to check wether its from mobile or desktop
if its mobile "index-m.html" should be server else "index.html" should be served
Ex : http://dummy.com/category/getcategories
this is a dynamic route , when this is requested it should go to its default Action method and get the result
Can any one help me, what do i have to do here to get this