diff --git a/src/front/Api/LeCoffreApi/Notifications/Notifications.ts b/src/front/Api/LeCoffreApi/Notary/Notifications/Notifications.ts similarity index 86% rename from src/front/Api/LeCoffreApi/Notifications/Notifications.ts rename to src/front/Api/LeCoffreApi/Notary/Notifications/Notifications.ts index d93becc2..bdecfcce 100644 --- a/src/front/Api/LeCoffreApi/Notifications/Notifications.ts +++ b/src/front/Api/LeCoffreApi/Notary/Notifications/Notifications.ts @@ -1,4 +1,4 @@ -import BaseApiService from "@Front/Api/BaseApiService"; +import BaseNotary from "../BaseNotary"; import { UserNotification } from "le-coffre-resources/dist/Notary"; // TODO Type get query params -> Where + inclue + orderby @@ -12,9 +12,9 @@ export type IPutNotificationsParams = { read?: boolean; }; -export default class Notifications extends BaseApiService { +export default class Notifications extends BaseNotary { private static instance: Notifications; - private baseUrl = this.getBaseUrl().concat("/notifications"); + private baseUrl = this.namespaceUrl.concat("/notifications"); private constructor() { super(); diff --git a/src/front/Components/DesignSystem/Header/Navigation/index.tsx b/src/front/Components/DesignSystem/Header/Navigation/index.tsx index 42f6ed43..71106d0c 100644 --- a/src/front/Components/DesignSystem/Header/Navigation/index.tsx +++ b/src/front/Components/DesignSystem/Header/Navigation/index.tsx @@ -6,7 +6,7 @@ import classes from "./classes.module.scss"; import Rules, { RulesMode } from "@Front/Components/Elements/Rules"; import { AppRuleActions, AppRuleNames } from "@Front/Api/Entities/rule"; import { usePathname } from "next/navigation"; -import Notifications from "@Front/Api/LeCoffreApi/Notifications/Notifications"; +import Notifications from "@Front/Api/LeCoffreApi/Notary/Notifications/Notifications"; import Toasts from "@Front/Stores/Toasts"; export default function Navigation() { const pathname = usePathname(); diff --git a/src/front/Stores/Toasts.tsx b/src/front/Stores/Toasts.tsx index 1bb11382..439e8537 100644 --- a/src/front/Stores/Toasts.tsx +++ b/src/front/Stores/Toasts.tsx @@ -1,4 +1,4 @@ -import Notifications from "@Front/Api/LeCoffreApi/Notifications/Notifications"; +import Notifications from "@Front/Api/LeCoffreApi/Notary/Notifications/Notifications"; import EventEmitter from "@Front/Services/EventEmitter"; // import I18n from "Components/Elements/I18n";