api now has /api/paths/:x1/:y1/:xn/:yn