|
|
@ -17,9 +17,16 @@ const rmfifo = (path: string) => { |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
export const getServerDetail: RequestHandler = async (request, response) => { |
|
|
|
export const getServerDetail: RequestHandler< |
|
|
|
const { serverUUID } = request.params; |
|
|
|
ServerDetailParamsDictionary, |
|
|
|
const { ss, resize } = request.query; |
|
|
|
unknown, |
|
|
|
|
|
|
|
unknown, |
|
|
|
|
|
|
|
ServerDetailParsedQs |
|
|
|
|
|
|
|
> = async (request, response) => { |
|
|
|
|
|
|
|
const { |
|
|
|
|
|
|
|
params: { serverUUID }, |
|
|
|
|
|
|
|
query: { ss, resize }, |
|
|
|
|
|
|
|
} = request; |
|
|
|
|
|
|
|
|
|
|
|
const epoch = Date.now(); |
|
|
|
const epoch = Date.now(); |
|
|
|
const isScreenshot = sanitize(ss, 'boolean'); |
|
|
|
const isScreenshot = sanitize(ss, 'boolean'); |
|
|
|