diff --git a/src/RESTAPI/RESTAPI_board_timepoint_handler.cpp b/src/RESTAPI/RESTAPI_board_timepoint_handler.cpp index 1f168cb..1292dc5 100644 --- a/src/RESTAPI/RESTAPI_board_timepoint_handler.cpp +++ b/src/RESTAPI/RESTAPI_board_timepoint_handler.cpp @@ -7,22 +7,30 @@ namespace OpenWifi { void RESTAPI_board_timepoint_handler::DoGet() { + + std::cout << __LINE__ << std::endl; auto id = GetBinding("id",""); + + std::cout << __LINE__ << std::endl; if(id.empty()) { return BadRequest(RESTAPI::Errors::MissingUUID); } + std::cout << __LINE__ << std::endl; AnalyticsObjects::BoardInfo B; if(!StorageService()->BoardsDB().GetRecord("id",id,B)) { return NotFound(); } + std::cout << __LINE__ << std::endl; auto fromDate = GetParameter("fromDate",0); auto endDate = GetParameter("endDate",0); auto maxRecords = GetParameter("maxRecords",100); auto stats = GetBoolParameter("stats"); + std::cout << __LINE__ << std::endl; if(stats) { + std::cout << __LINE__ << std::endl; AnalyticsObjects::DeviceTimePointStats DTPS; Poco::JSON::Object Answer; DB_.GetStats(id,DTPS); @@ -34,6 +42,7 @@ namespace OpenWifi { StorageService()->TimePointsDB().SelectRecords(fromDate, endDate, maxRecords, Points.points); Poco::JSON::Object Answer; Points.to_json(Answer); + std::cout << __LINE__ << std::endl; return ReturnObject(Answer); } } \ No newline at end of file