chore: complete clean Agent Desk source snapshot
This commit is contained in:
19
web/lib/api/support-config.ts
Normal file
19
web/lib/api/support-config.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { request } from "@/lib/api/client"
|
||||
|
||||
export type SupportNavigationMenuItem = {
|
||||
id: string
|
||||
title: string
|
||||
url: string
|
||||
openInNewWindow: boolean
|
||||
visible: boolean
|
||||
sortNo: number
|
||||
children?: SupportNavigationMenuItem[]
|
||||
}
|
||||
|
||||
export type PublicSupportConfig = {
|
||||
navigationMenu: SupportNavigationMenuItem[]
|
||||
}
|
||||
|
||||
export function fetchSupportConfig() {
|
||||
return request<PublicSupportConfig>("/api/support/config", { skipAuth: true })
|
||||
}
|
||||
Reference in New Issue
Block a user