Ignore:
Timestamp:
May 7, 2023, 2:54:45 PM (19 months ago)
Author:
alloc
Message:

Added API "item"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements2/WebServer/src/WebAPI/APIs/Mods.cs

    r426 r432  
    5656                }
    5757
    58                 protected override void HandleRestGet (RequestContext _context) {
    59                         PrepareEnvelopedResult (out JsonWriter writer);
    60                         writer.WriteRaw (loadedWebMods);
    61                         SendEnvelopedResult (_context, ref writer);
    62                 }
    63 
    64                 public override int DefaultPermissionLevel () => AdminWebModules.PermissionLevelGuest;
    65 
    6658                private void writeModJson (ref JsonWriter _writer, WebMod _webMod) {
    6759                        _writer.WritePropertyName ("name");
     
    8880                        JsonCommons.WriteStringOrNull (ref _writer, _webMod.ParentMod.Website);
    8981                }
     82
     83                protected override void HandleRestGet (RequestContext _context) {
     84                        PrepareEnvelopedResult (out JsonWriter writer);
     85                        writer.WriteRaw (loadedWebMods);
     86                        SendEnvelopedResult (_context, ref writer);
     87                }
     88
     89                public override int DefaultPermissionLevel () => AdminWebModules.PermissionLevelGuest;
    9090        }
    9191}
Note: See TracChangeset for help on using the changeset viewer.