make api route path relative to config