更新系统选项
curl --request PUT \
--url https://api.lmm.best/api/option/import requests
url = "https://api.lmm.best/api/option/"
response = requests.put(url)
print(response.text)const options = {method: 'PUT'};
fetch('https://api.lmm.best/api/option/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lmm.best/api/option/"
req, _ := http.NewRequest("PUT", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}系统设置
更新系统选项
👑 需要超级管理员权限(Root)。兼容期内 theme.frontend=default 可幂等写入,其他主题值会被拒绝。
PUT
/
api
/
option
/
更新系统选项
curl --request PUT \
--url https://api.lmm.best/api/option/import requests
url = "https://api.lmm.best/api/option/"
response = requests.put(url)
print(response.text)const options = {method: 'PUT'};
fetch('https://api.lmm.best/api/option/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lmm.best/api/option/"
req, _ := http.NewRequest("PUT", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}响应
200
成功
最后修改于 2026年9月23日
⌘I