Settings API
Read and update runtime settings.
These are the same settings you see on the Settings page.
Read settings
GET /api/settings— [Admin]
Example response
{
"config": {
"privateMode": false,
"showGuides": true,
"homeTitle": "Voux · Simple Free & Open Source Hit Counter...",
"brandName": "Voux",
"allowedModes": { "unique": true, "unlimited": true },
"unlimitedThrottleSeconds": 0,
"theme": "default"
},
"version": "2.0.6",
"usersPageSize": 4
}Update settings
POST /api/settings— [Admin]
You can update:
privateModeshowGuideshomeTitlebrandNameallowedModesunlimitedThrottleSecondstheme
Example request
{
"privateMode": true,
"showGuides": false,
"brandName": "My Voux",
"allowedModes": { "unique": true, "unlimited": false },
"unlimitedThrottleSeconds": 10,
"theme": "ocean"
}Example response
{
"config": {
"privateMode": true,
"showGuides": false,
"brandName": "My Voux",
"allowedModes": { "unique": true, "unlimited": false },
"unlimitedThrottleSeconds": 10,
"theme": "ocean"
},
"version": "2.0.6"
}
Edit on GitHub
Last updated on