I have a file on disk in the path /Files/filename.txt, and the MVC routing system checks if the file exists before using its routing logic (with controller, action ...).
I want to use routing logic before matching files on disk.
If I set "RouteExistingFiles = true", it will ALWAYS use routing for the corresponding files. I want this behavior to target only a specific folder.
"FileController" must be called even if the file in the Files folder exists. Basically, I want the opposite behavior of "IgnoreRoute ()".
How can i achieve this?
source share