add /api to endpoint config