Added routes for api.