Routes and ApiController bugfixing.