adds routes for votes in api