Updated config for api routes