Lay groundwork for api-routes