File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { Request , Response } from "express" ;
12import * as realtime from "../realtime/realtime" ;
23
34import config from "../config" ;
45
56
6- export async function getStatus ( req , res ) {
7+ export async function getStatus ( req : Request , res : Response ) : Promise < void > {
78 res . set ( {
89 'Cache-Control' : 'private' , // only cache by client
910 'X-Robots-Tag' : 'noindex, nofollow' , // prevent crawling
@@ -19,7 +20,7 @@ export async function getStatus(req, res) {
1920 }
2021}
2122
22- export async function getMetrics ( req , res ) {
23+ export async function getMetrics ( req : Request , res : Response ) : Promise < void > {
2324 const data = await realtime . getStatus ( )
2425
2526 res . set ( {
@@ -30,7 +31,7 @@ export async function getMetrics(req, res) {
3031 res . render ( '../js/lib/common/metrics.ejs' , data )
3132}
3233
33- export function getConfig ( req , res ) {
34+ export function getConfig ( req : Request , res : Response ) : void {
3435 const data = {
3536 domain : config . domain ,
3637 urlpath : config . urlPath ,
You can’t perform that action at this time.
0 commit comments