mirror of
https://github.com/movie-web/backend.git
synced 2025-09-13 13:03:26 +00:00
add captcha client key to meta
This commit is contained in:
@@ -55,6 +55,8 @@ export const configSchema = z.object({
|
|||||||
|
|
||||||
// captcha secret
|
// captcha secret
|
||||||
secret: z.string().min(1).optional(),
|
secret: z.string().min(1).optional(),
|
||||||
|
|
||||||
|
clientKey: z.string().min(1).optional(),
|
||||||
})
|
})
|
||||||
.default({}),
|
.default({}),
|
||||||
});
|
});
|
||||||
|
@@ -23,6 +23,7 @@ export const metaRouter = makeRouter((app) => {
|
|||||||
name: conf.meta.name,
|
name: conf.meta.name,
|
||||||
description: conf.meta.description,
|
description: conf.meta.description,
|
||||||
hasCaptcha: conf.captcha.enabled,
|
hasCaptcha: conf.captcha.enabled,
|
||||||
|
captchaClientKey: conf.captcha.clientKey,
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user