Changeset 459 for TFP-WebServer/WebServer/src/WebAPI/APIs/LogApi.cs
- Timestamp:
- Aug 9, 2023, 9:41:32 PM (15 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
TFP-WebServer/WebServer/src/WebAPI/APIs/LogApi.cs
r458 r459 5 5 namespace Webserver.WebAPI.APIs { 6 6 [UsedImplicitly] 7 public class Log : AbsRestApi {7 public class LogApi : AbsRestApi { 8 8 private const int maxCount = 1000; 9 9 … … 17 17 private static readonly byte[] jsonIsotimeKey = JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator ("isotime"); 18 18 private static readonly byte[] jsonUptimeKey = JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator ("uptime"); 19 19 20 public LogApi () : base ("Log") { 21 } 22 20 23 protected override void HandleRestGet (RequestContext _context) { 21 24 if (_context.Request.QueryString ["count"] == null || !int.TryParse (_context.Request.QueryString ["count"], out int count)) {
Note:
See TracChangeset
for help on using the changeset viewer.