import express from 'express' ; import { SessionCounter } from 'sessioncounter' ; /**
 * handles requests to /ping
 */ export class PingRoute { public static InstallRoutes ( app ) { app . route ( '/ping' ) . get ( ( req , res ) => PingRoute . onGetPing ( req , res ) ) ; } param req param res private static onGetPing ( req , res ) { const pingReply = { sessions : SessionCounter . Get ( ) , uptime : process . uptime ( ) } ; return res . status ( 200 ) . json ( pingReply ) . end ( ) ; } }