Changeset 432 for binary-improvements2/WebServer/src/WebAPI
- Timestamp:
- May 7, 2023, 2:54:45 PM (19 months ago)
- Location:
- binary-improvements2/WebServer/src/WebAPI/APIs
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/WebServer/src/WebAPI/APIs/Mods.cs
r426 r432 56 56 } 57 57 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 66 58 private void writeModJson (ref JsonWriter _writer, WebMod _webMod) { 67 59 _writer.WritePropertyName ("name"); … … 88 80 JsonCommons.WriteStringOrNull (ref _writer, _webMod.ParentMod.Website); 89 81 } 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; 90 90 } 91 91 }
Note:
See TracChangeset
for help on using the changeset viewer.