Moving some stuff around so the API endpoint lives in the app dir.