Ignore:
Timestamp:
Apr 10, 2023, 8:23:15 PM (19 months ago)
Author:
alloc
Message:
  • API "map" added, currently only supports GET with the ID "config"
  • API "player" added, currently only supports getting online players with some of the info not supported yet (playtime, last online, level)
  • Only logged in player's data is shown unless the user has the permission for "webapi.viewallplayers"
  • Internal refactoring
  • (Updated version to 21.0.258)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements2/WebServer/src/SSE/EventLog.cs

    r402 r425  
    44using Utf8Json;
    55using Webserver.UrlHandlers;
     6using Webserver.WebAPI;
    67
    78namespace Webserver.SSE {
     
    1920
    2021                private void LogCallback (string _formattedMsg, string _plainMsg, string _trace, LogType _type, DateTime _timestamp, long _uptime) {
    21                         string isotime = _timestamp.ToString ("o");
    2222                        string uptime = _uptime.ToString ();
    2323
     
    3434                       
    3535                        writer.WriteRaw (jsonIsotimeKey);
    36                         writer.WriteString (isotime);
     36                        JsonCommons.WriteDateTime (ref writer, _timestamp);
    3737                       
    3838                        writer.WriteRaw (jsonUptimeKey);
Note: See TracChangeset for help on using the changeset viewer.