adding organization feature.

This commit is contained in:
killian-larcher
2024-12-12 13:31:11 +01:00
parent 5bd24574c3
commit afb936bc5b
29 changed files with 363 additions and 93 deletions
+11
View File
@@ -0,0 +1,11 @@
// import {NextResponse} from "next/server";
// import {useStore} from "@/state-management/store";
//
// export function middleware(req) {
// // const organizationId = req.cookies.get("organizationId") || "default"; // Retrieve from cookies
// const url = req.nextUrl.clone();
// const {organizationId, moveToAnotherOrganization} = useStore((state) => state);
// console.log("middlewaressss", organizationId);
// // url.searchParams.set("organizationId", organizationId); // Append to query string
// return NextResponse.rewrite(url);
// }