docs(api): more old version stuff
This commit is contained in:
8
LogisticsSupportTool_API_DOCS/LstV2/ocp/folder.bru
Normal file
8
LogisticsSupportTool_API_DOCS/LstV2/ocp/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
meta {
|
||||||
|
name: ocp
|
||||||
|
seq: 6
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
meta {
|
||||||
|
name: Update Printers
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{url}}/lst/old/api/ocp/updateprinters
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
settings {
|
||||||
|
encodeUrl: true
|
||||||
|
timeout: 0
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
meta {
|
||||||
|
name: printers
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
vars {
|
vars {
|
||||||
url: https://usmcd1vms036.alpla.net
|
url: https://usiow2prod.alpla.net
|
||||||
session_cookie:
|
session_cookie:
|
||||||
urlv2: http://localhost:3000
|
urlv2: http://localhost:3000
|
||||||
jwtV2:
|
jwtV2:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
||||||
import { redirect, useNavigate, useRouter } from "@tanstack/react-router";
|
import { redirect, useNavigate, useRouter } from "@tanstack/react-router";
|
||||||
import { createAuthClient } from "better-auth/client";
|
import { createAuthClient } from "better-auth/client";
|
||||||
import { usernameClient } from "better-auth/client/plugins";
|
import { adminClient, usernameClient } from "better-auth/client/plugins";
|
||||||
import { useEffect } from "react";
|
import { useEffect } from "react";
|
||||||
import { create } from "zustand";
|
import { create } from "zustand";
|
||||||
import { api } from "./axiosAPI";
|
import { api } from "./axiosAPI";
|
||||||
@@ -112,7 +112,7 @@ export async function checkUserAccess({
|
|||||||
// ---- BETTER AUTH CLIENT ----
|
// ---- BETTER AUTH CLIENT ----
|
||||||
export const authClient = createAuthClient({
|
export const authClient = createAuthClient({
|
||||||
baseURL: `${window.location.origin}/lst/api/auth`,
|
baseURL: `${window.location.origin}/lst/api/auth`,
|
||||||
plugins: [usernameClient()],
|
plugins: [usernameClient(), adminClient()],
|
||||||
options: {
|
options: {
|
||||||
autoPopup: false,
|
autoPopup: false,
|
||||||
requireAuth: false,
|
requireAuth: false,
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import {
|
|||||||
Sidebar,
|
Sidebar,
|
||||||
SidebarContent,
|
SidebarContent,
|
||||||
SidebarFooter,
|
SidebarFooter,
|
||||||
|
SidebarMenuButton,
|
||||||
SidebarMenuItem,
|
SidebarMenuItem,
|
||||||
SidebarTrigger,
|
SidebarTrigger,
|
||||||
} from "../../../../../components/ui/sidebar";
|
} from "../../../../../components/ui/sidebar";
|
||||||
@@ -51,7 +52,9 @@ export function AppSidebar() {
|
|||||||
</SidebarContent>
|
</SidebarContent>
|
||||||
<SidebarFooter>
|
<SidebarFooter>
|
||||||
<SidebarMenuItem>
|
<SidebarMenuItem>
|
||||||
<Link to={"/changelog"}>Changelog</Link>
|
<SidebarMenuButton asChild>
|
||||||
|
<Link to={"/changelog"}>Changelog</Link>
|
||||||
|
</SidebarMenuButton>
|
||||||
</SidebarMenuItem>
|
</SidebarMenuItem>
|
||||||
<SidebarTrigger />
|
<SidebarTrigger />
|
||||||
</SidebarFooter>
|
</SidebarFooter>
|
||||||
|
|||||||
Reference in New Issue
Block a user