Change mapping system for static directories. Now, can accept object to
setup route name
Modification to use new static system