extracted /api route to dedicated module