mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-18 02:32:50 +00:00
The NexusDashboard-parity dashboard (dDashboardServer) and everything built on it on the experimental branch: accounts, characters, properties and moderation tools, permissions shared with in-game slash commands, economy reports, World 3D and property 3D views with client scenery, scheduled events (features, vanity changes, live events, announcements, restarts), vanity files and events, the CDClient browser, the message inspector with saved captures, chat filter tools, community challenges, live ops, the AI moderator helper, and the server-side changes they need. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
644 B
C++
20 lines
644 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <optional>
|
|
#include <string>
|
|
|
|
#include "json.hpp"
|
|
|
|
struct HTTPContext;
|
|
|
|
// Server settings stored in the database and edited from the dashboard (GM 9)
|
|
void RegisterSettingsRoutes();
|
|
|
|
/**
|
|
* Save one setting the way the Settings page does: checked, stored, audited, written to the setting history and every
|
|
* server told to reload. Body: {file, name, value (null clears the web value), webWins}. revertOf: the history entry
|
|
* this undoes. Returns why it was refused, if it was.
|
|
*/
|
|
std::optional<std::string> SaveSetting(const HTTPContext& context, const nlohmann::json& body, uint64_t revertOf = 0);
|