Change route configuration for api too