mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-10-30 01:10:50 +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', {
|
||||
|
||||
@@ -855,6 +855,7 @@ export {
|
||||
msdConfigApi,
|
||||
otgConfigApi,
|
||||
otgNetworkApi,
|
||||
uacApi,
|
||||
atxConfigApi,
|
||||
audioConfigApi,
|
||||
extensionsApi,
|
||||
|
||||
Reference in New Issue
Block a user