mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-06-06 14:54:22 +00:00
- Implemented dashboard audit logging with InsertAuditLog, GetRecentAuditLogs, GetAuditLogsByIP, and CleanupOldAuditLogs methods. - Created dashboard configuration management with GetDashboardConfig and SetDashboardConfig methods. - Added new tables for dashboard_audit_log and dashboard_config in both MySQL and SQLite migrations. - Updated CMakeLists to include Crow and ASIO for dashboard server functionality. - Enhanced existing database classes to support new dashboard features, including character, play key, and property management. - Added new methods for retrieving and managing play keys, properties, and pet names. - Updated TestSQLDatabase to include stubs for new dashboard-related methods. - Modified shared and dashboard configuration files for new settings.
20 lines
365 B
C++
20 lines
365 B
C++
#ifndef __DASHBOARDWEB_H__
|
|
#define __DASHBOARDWEB_H__
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
|
|
namespace DashboardWeb {
|
|
|
|
// Initialize the web server and configure routes using blueprints
|
|
void Initialize(uint32_t port);
|
|
|
|
// Process pending web requests (call each frame/tick)
|
|
void Update();
|
|
|
|
// Stop the web server
|
|
void Stop();
|
|
};
|
|
|
|
#endif // __DASHBOARDWEB_H__
|