File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change
1
+ import { Request , Response } from "express" ;
1
2
import * as realtime from "../realtime/realtime" ;
2
3
3
4
import config from "../config" ;
4
5
5
6
6
- export async function getStatus ( req , res ) {
7
+ export async function getStatus ( req : Request , res : Response ) : Promise < void > {
7
8
res . set ( {
8
9
'Cache-Control' : 'private' , // only cache by client
9
10
'X-Robots-Tag' : 'noindex, nofollow' , // prevent crawling
@@ -19,7 +20,7 @@ export async function getStatus(req, res) {
19
20
}
20
21
}
21
22
22
- export async function getMetrics ( req , res ) {
23
+ export async function getMetrics ( req : Request , res : Response ) : Promise < void > {
23
24
const data = await realtime . getStatus ( )
24
25
25
26
res . set ( {
@@ -30,7 +31,7 @@ export async function getMetrics(req, res) {
30
31
res . render ( '../js/lib/common/metrics.ejs' , data )
31
32
}
32
33
33
- export function getConfig ( req , res ) {
34
+ export function getConfig ( req : Request , res : Response ) : void {
34
35
const data = {
35
36
domain : config . domain ,
36
37
urlpath : config . urlPath ,
You can’t perform that action at this time.
0 commit comments