Changeset 471 for TFP-WebServer/WebServer/src/WebAPI/APIs
- Timestamp:
- Aug 21, 2023, 1:32:40 PM (15 months ago)
- Location:
- TFP-WebServer/WebServer/src/WebAPI/APIs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TFP-WebServer/WebServer/src/WebAPI/APIs/Log.openapi.yaml
r467 r471 87 87 88 88 paths: 89 /api/ Log:89 /api/log: 90 90 get: 91 91 tags: -
TFP-WebServer/WebServer/src/WebAPI/APIs/LogApi.cs
r467 r471 23 23 24 24 protected override void HandleRestGet (RequestContext _context) { 25 if (_context. Request.QueryString ["count"] == null || !int.TryParse (_context.Request.QueryString["count"], out int count)) {25 if (_context.QueryParameters ["count"] == null || !int.TryParse (_context.QueryParameters ["count"], out int count)) { 26 26 count = 50; 27 27 } … … 39 39 } 40 40 41 if (_context. Request.QueryString ["firstLine"] == null || !int.TryParse (_context.Request.QueryString["firstLine"], out int firstLine)) {41 if (_context.QueryParameters ["firstLine"] == null || !int.TryParse (_context.QueryParameters ["firstLine"], out int firstLine)) { 42 42 firstLine = count > 0 ? LogBuffer.Instance.OldestLine : LogBuffer.Instance.LatestLine; 43 43 }
Note:
See TracChangeset
for help on using the changeset viewer.