server.add_route('/node/register', RegisterNode()) server.add_route('/node/update-nodeinfo', UpdateNodeInfo()) server.add_route('/node/deregister', DeRegisterNode()) server.add_route('/node/update-connections', UpdateConnections()) # Stats server.add_route('/stats/sessions/all', GetDailySessionCount()) server.add_route('/stats/sessions/active', GetActiveSessionCount()) server.add_route('/stats/sessions/average', GetAverageSessionsCount()) server.add_route('/stats/nodes/all', GetTotalNodeCount()) server.add_route('/stats/nodes/active', GetDailyActiveNodeCount()) # server.add_route('/stats/nodes/average-nodes', GetAverageNodesCount()) server.add_route('/stats/nodes/new', GetDailyNodeCount()) # server.add_route('/stats/nodes/active-count', GetActiveNodeCount()) server.add_route('/stats/bandwidth/average', GetDailyDataCount()) server.add_route('/stats/bandwidth/all', GetTotalDataCount()) server.add_route('/stats/bandwidth', GetLastDataCount()) server.add_route('/stats/sessions/duration/all', GetDailyDurationCount()) server.add_route('/stats/sessions/duration/average', GetAverageDuration()) # server.add_route('/stats/time/average-daily', GetDailyAverageDuration()) # server.add_route('/stats/session-duration/average/lastday', GetLastAverageDuration()) server.add_route('/stats/payments/all/day', GetDailyPaidSentsCount()) server.add_route('/stats/earnings/all', GetDailyTotalSentsUsed()) server.add_route('/stats/payments/average/day', GetAveragePaidSentsCount()) server.add_route('/stats/earnings/average', GetAverageTotalSentsCount()) server.add_route('/stats/node', GetNodeStatistics()) server.add_route('/stats/sessions/active-count', GetActiveSessionCountOld()) server.add_route('/stats/nodes/daily-active', GetDailyActiveNodeCountOld()) server.add_route('/stats/nodes/active-count', GetActiveNodeCountOld()) server.add_route('/stats/data/daily-stats', GetDailyDataCountOld()) server.add_route('/stats/data/total-data', GetTotalDataCountOld())
server.add_route('/node/register', RegisterNode()) server.add_route('/node/update-nodeinfo', UpdateNodeInfo()) server.add_route('/node/deregister', DeRegisterNode()) server.add_route('/node/update-connections', UpdateConnections()) # Stats server.add_route('/stats/sessions/daily-stats', GetDailySessionCount()) server.add_route('/stats/sessions/active-count', GetActiveSessionCount()) server.add_route('/stats/sessions/average-count', GetAverageSessionsCount()) server.add_route('/stats/nodes/total-nodes', GetTotalNodeCount()) server.add_route('/stats/nodes/daily-active', GetDailyActiveNodeCount()) server.add_route('/stats/nodes/average-nodes', GetAverageNodesCount()) server.add_route('/stats/nodes/daily-stats', GetDailyNodeCount()) server.add_route('/stats/nodes/active-count', GetActiveNodeCount()) server.add_route('/stats/data/daily-stats', GetDailyDataCount()) server.add_route('/stats/data/total-data', GetTotalDataCount()) server.add_route('/stats/data/last-data', GetLastDataCount()) server.add_route('/stats/time/daily-stats', GetDailyDurationCount()) server.add_route('/stats/time/average-duration', GetAverageDuration()) server.add_route('/stats/time/average-daily', GetDailyAverageDuration()) server.add_route('/stats/time/last-average', GetLastAverageDuration()) server.add_route('/stats/payment/paid-sents-count', GetDailyPaidSentsCount()) server.add_route('/stats/payment/total-sents-used', GetDailyTotalSentsUsed()) server.add_route('/stats/payment/average-paid-sents', GetAveragePaidSentsCount()) server.add_route('/stats/payment/average-total-sents', GetAverageTotalSentsCount()) server.add_route('/stats/node', GetNodeStatistics()) # Token Swaps server.add_route('/tokens', Up())