@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
|
};
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED