This commit is contained in:
Simon Larsen 2023-09-13 15:33:41 +05:30
parent fc09c689bc
commit e3f2eaa3c6
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE

View File

@ -25,16 +25,17 @@ export default class ProbeAPI extends BaseAPI<Probe, ProbeServiceType> {
next: NextFunction
) => {
try {
const globalConfig: GlobalConfig | null = await GlobalConfigService.findOneById({
id: ObjectID.getZeroObjectID(),
select: {
host: true,
useHttps: true,
},
props: {
isRoot: true,
},
});
const globalConfig: GlobalConfig | null =
await GlobalConfigService.findOneById({
id: ObjectID.getZeroObjectID(),
select: {
host: true,
useHttps: true,
},
props: {
isRoot: true,
},
});
return Response.sendJsonObjectResponse(req, res, {
HOST: globalConfig?.host?.toString() || 'localhost',