@inspirer-dev/crm-dashboard 1.0.8 → 1.0.9

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.
@@ -23,10 +23,10 @@ import { Layouts } from '@strapi/admin/strapi-admin';
23
23
  const getBackendUrl = (): string => {
24
24
  // NOTE: do NOT use STRAPI_ADMIN_BACKEND_URL here — that is reserved for Strapi itself
25
25
  // and will break admin if pointed to another service.
26
- const raw = process.env.STRAPI_ADMIN_CRM_BACKEND_URL || 'http://localhost:3100';
26
+ const raw = process.env.STRAPI_ADMIN_CRM_BACKEND_URL || 'http://localhost:3100/api';
27
27
 
28
28
  if (!/^https?:\/\//i.test(raw)) {
29
- return 'http://localhost:3100';
29
+ return 'http://localhost:3100/api';
30
30
  }
31
31
 
32
32
  return raw.endsWith('/') ? raw.slice(0, -1) : raw;
@@ -16950,9 +16950,9 @@ const usersService = adminApi.enhanceEndpoints({
16950
16950
  });
16951
16951
  const { useCreateUserMutation, useGetUsersQuery, useUpdateUserMutation, useDeleteManyUsersMutation, useGetRolesQuery, useCreateRoleMutation, useUpdateRoleMutation, useGetRolePermissionsQuery, useGetRolePermissionLayoutQuery, useUpdateRolePermissionsMutation } = usersService;
16952
16952
  const getBackendUrl = () => {
16953
- const raw = process.env.STRAPI_ADMIN_CRM_BACKEND_URL || "http://localhost:3100";
16953
+ const raw = process.env.STRAPI_ADMIN_CRM_BACKEND_URL || "http://localhost:3100/api";
16954
16954
  if (!/^https?:\/\//i.test(raw)) {
16955
- return "http://localhost:3100";
16955
+ return "http://localhost:3100/api";
16956
16956
  }
16957
16957
  return raw.endsWith("/") ? raw.slice(0, -1) : raw;
16958
16958
  };
@@ -16971,9 +16971,9 @@ const usersService = adminApi.enhanceEndpoints({
16971
16971
  });
16972
16972
  const { useCreateUserMutation, useGetUsersQuery, useUpdateUserMutation, useDeleteManyUsersMutation, useGetRolesQuery, useCreateRoleMutation, useUpdateRoleMutation, useGetRolePermissionsQuery, useGetRolePermissionLayoutQuery, useUpdateRolePermissionsMutation } = usersService;
16973
16973
  const getBackendUrl = () => {
16974
- const raw = process.env.STRAPI_ADMIN_CRM_BACKEND_URL || "http://localhost:3100";
16974
+ const raw = process.env.STRAPI_ADMIN_CRM_BACKEND_URL || "http://localhost:3100/api";
16975
16975
  if (!/^https?:\/\//i.test(raw)) {
16976
- return "http://localhost:3100";
16976
+ return "http://localhost:3100/api";
16977
16977
  }
16978
16978
  return raw.endsWith("/") ? raw.slice(0, -1) : raw;
16979
16979
  };
@@ -54,7 +54,7 @@ const index = {
54
54
  Component: async () => {
55
55
  const component = await Promise.resolve().then(() => require(
56
56
  /* webpackChunkName: "crm-dashboard-page" */
57
- "../_chunks/index-DE7CanhG.js"
57
+ "../_chunks/index-CYXNVioH.js"
58
58
  ));
59
59
  return component;
60
60
  },
@@ -53,7 +53,7 @@ const index = {
53
53
  Component: async () => {
54
54
  const component = await import(
55
55
  /* webpackChunkName: "crm-dashboard-page" */
56
- "../_chunks/index-85SamnHE.mjs"
56
+ "../_chunks/index-BWojad6n.mjs"
57
57
  );
58
58
  return component;
59
59
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inspirer-dev/crm-dashboard",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "CRM Dashboard and Tools",
5
5
  "strapi": {
6
6
  "name": "crm-dashboard",