mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Samba is installed and can be configured in the Controller.
This commit is contained in:
parent
0ceac364ec
commit
ce0cdd3a2e
15 changed files with 837 additions and 5 deletions
|
|
@ -107,6 +107,23 @@ export async function disableBluetooth() {
|
|||
return controllerFetch('/bluetooth/disable', {method: 'POST'});
|
||||
}
|
||||
|
||||
// --- Samba Endpoints ---
|
||||
|
||||
export async function getSambaStatus() {
|
||||
return controllerFetch('/samba/status');
|
||||
}
|
||||
|
||||
export async function addSambaShare(name, path, readOnly = true, comment = '') {
|
||||
return controllerFetch('/samba/shares', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({name, path, read_only: readOnly, comment}),
|
||||
});
|
||||
}
|
||||
|
||||
export async function removeSambaShare(shareName) {
|
||||
return controllerFetch(`/samba/shares/${encodeURIComponent(shareName)}`, {method: 'DELETE'});
|
||||
}
|
||||
|
||||
export async function shutdownSystem() {
|
||||
return controllerFetch('/shutdown', {method: 'POST'});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue