asp.net mvc - Routing static assets -
i have folder structure organize assets serve don't want reflected in urls have. example, have
- assets
- css
- bootstrap
- less_generated
- general
- js
- bootstrap
- coffee_script_generated
- typescript_generated
- general
the folder structure concern me, developer, not resource address. /assets/filename.css filename.css in of listed folders may contain css files, , serve first 1 found. , equivalent .js files.
i can't find way route in mvc. routes route controller, , i'd route file resource instead, , writing controller serve static resources seems wrong, behaviour surrounding cache control headers have manually. how can accomplish this?
Comments
Post a Comment