mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-09-13 02:54:26 +08:00
Merge branch 'main' into dev
# Conflicts: # src/web/handlers/setup.rs # web/src/i18n/en-US.ts # web/src/i18n/zh-CN.ts
This commit is contained in:
@@ -118,6 +118,16 @@ export const otgNetworkApi = {
|
||||
interfaces: () => request<NetworkInterfaceInfo[]>('/devices/network', {}, { toastOnError: false }),
|
||||
}
|
||||
|
||||
export const uacApi = {
|
||||
get: () => request<{enabled: boolean; sample_rate: number; channels: number}>('/config/uac'),
|
||||
|
||||
update: (config: {enabled: boolean; sample_rate: number; channels: number}) =>
|
||||
request('/config/uac', {
|
||||
method: 'PATCH',
|
||||
body: JSON.stringify(config),
|
||||
}),
|
||||
}
|
||||
|
||||
export const otgConfigApi = {
|
||||
update: (config: OtgConfigUpdate) =>
|
||||
request<OtgConfigResponse>('/config/otg', {
|
||||
|
||||
Reference in New Issue
Block a user