Add gateway auto toggle for client mode
This commit is contained in:
@@ -32,6 +32,12 @@ export const api = {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ selectedTag }),
|
||||
}),
|
||||
gatewayAuto: {
|
||||
setEnabled: (enabled) => request('/api/gateway-auto', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ enabled }),
|
||||
}),
|
||||
},
|
||||
singbox: {
|
||||
stop: () => request('/api/singbox/stop', { method: 'POST' }),
|
||||
restart: () => request('/api/singbox/restart', { method: 'POST' }),
|
||||
|
||||
Reference in New Issue
Block a user