@stemy/ngx-utils 19.4.2 → 19.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3177,8 +3177,10 @@ class ApiService extends BaseHttpService {
3177
3177
  return "api";
3178
3178
  }
3179
3179
  url(url) {
3180
- const baseUrl = this.expressRequestUrl(`/api/${url}`);
3181
- if (url == "api-docs" || url == "socket") {
3180
+ const config = this.configs.config;
3181
+ const baseUrl = this.expressRequestUrl(`${config.apiUrl}${url}`);
3182
+ const socket = this.injector.get(SOCKET_IO_PATH);
3183
+ if (url == "api-docs" || url == socket) {
3182
3184
  return baseUrl.replace("/api/", "/");
3183
3185
  }
3184
3186
  return baseUrl;
@@ -7555,7 +7557,7 @@ class NgxUtilsModule {
7555
7557
  },
7556
7558
  {
7557
7559
  provide: SOCKET_IO_PATH,
7558
- useValue: (!config ? null : config.socketPath) ?? "/socket",
7560
+ useValue: (!config ? null : config.socketPath) ?? "socket.io",
7559
7561
  },
7560
7562
  {
7561
7563
  provide: APP_INITIALIZER,