mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
uptime
This commit is contained in:
@@ -10,6 +10,9 @@ import { BitcoinRpcService } from './services/bitcoin-rpc.service';
|
|||||||
|
|
||||||
@Controller()
|
@Controller()
|
||||||
export class AppController {
|
export class AppController {
|
||||||
|
|
||||||
|
private uptime = new Date();
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
@Inject(CACHE_MANAGER) private readonly cacheManager: Cache,
|
@Inject(CACHE_MANAGER) private readonly cacheManager: Cache,
|
||||||
private readonly clientService: ClientService,
|
private readonly clientService: ClientService,
|
||||||
@@ -26,7 +29,8 @@ export class AppController {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
blockData,
|
blockData,
|
||||||
userAgents
|
userAgents,
|
||||||
|
uptime: this.uptime
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user