Add 2y and 3y statistics time span.

This commit is contained in:
Miguel Medeiros
2021-11-01 22:06:10 -03:00
parent 231e169c66
commit b6c4a6dfc3
6 changed files with 63 additions and 4 deletions

View File

@@ -52,6 +52,14 @@ class Routes {
res.json(statistics.getCache()['1y']);
}
public get2YStatistics(req: Request, res: Response) {
res.json(statistics.getCache()['2y']);
}
public get3YStatistics(req: Request, res: Response) {
res.json(statistics.getCache()['3y']);
}
public getInitData(req: Request, res: Response) {
try {
const result = websocketHandler.getInitData();