Show the time that the server was started in a HTTP header
This commit is contained in:
parent
a0688e4b55
commit
5d3a94bffa
|
@ -51,9 +51,10 @@ proc `%!`(why: string): JsonNode =
|
||||||
}
|
}
|
||||||
|
|
||||||
let myHeaders = {
|
let myHeaders = {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
"X-Powered-By": "Nim and Jester",
|
"X-Powered-By": "Nim and Jester",
|
||||||
"X-Git-Hash": getEnv("GIT_REV"),
|
"X-Git-Hash": getEnv("GIT_REV"),
|
||||||
|
"X-Server-Epoch": $ getTime().toSeconds().int,
|
||||||
}
|
}
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
|
|
Loading…
Reference in New Issue