parse csv api routes