mirror of
https://github.com/movie-web/backend.git
synced 2025-09-13 13:03:26 +00:00
Add version to meta route
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { conf } from '@/config';
|
import { conf, version } from '@/config';
|
||||||
import { handle } from '@/services/handler';
|
import { handle } from '@/services/handler';
|
||||||
import { makeRouter } from '@/services/router';
|
import { makeRouter } from '@/services/router';
|
||||||
|
|
||||||
@@ -26,6 +26,7 @@ export const metaRouter = makeRouter((app) => {
|
|||||||
return {
|
return {
|
||||||
name: conf.meta.name,
|
name: conf.meta.name,
|
||||||
description: conf.meta.description,
|
description: conf.meta.description,
|
||||||
|
version: version,
|
||||||
hasCaptcha: conf.captcha.enabled,
|
hasCaptcha: conf.captcha.enabled,
|
||||||
captchaClientKey: conf.captcha.clientKey,
|
captchaClientKey: conf.captcha.clientKey,
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user