add config route, make api domain configurable