fix /api path