Fixed static routing for AngularJS, added api route