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/WebUtils.cs

    r422 r425  
    55using System.Text;
    66using Utf8Json;
     7using Webserver.WebAPI;
    78using HttpListenerRequest = SpaceWizards.HttpListener.HttpListenerRequest;
    89using HttpListenerResponse = SpaceWizards.HttpListener.HttpListenerResponse;
     
    8081
    8182                        _writer.WriteRaw (jsonRawMetaServertimeKey);
    82                         _writer.WriteString (DateTime.Now.ToString ("o"));
     83                        JsonCommons.WriteDateTime (ref _writer, DateTime.Now);
    8384
    8485                        if (!string.IsNullOrEmpty (_errorCode)) {
Note: See TracChangeset for help on using the changeset viewer.