Adds controller for map based routes. Adds cors there.