From 4fb6d095123dc630e777b7c2e3e44733ccf9a18b Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 9 Jan 2025 21:08:55 +0800 Subject: [PATCH] feat: update follow api --- lib/api/follow/config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/api/follow/config.ts b/lib/api/follow/config.ts index 6465470dd845be..bb44f94ffb4229 100644 --- a/lib/api/follow/config.ts +++ b/lib/api/follow/config.ts @@ -1,5 +1,6 @@ import { config } from '@/config'; import { createRoute, RouteHandler } from '@hono/zod-openapi'; +import { gitHash, gitDate } from '@/utils/git-hash'; const route = createRoute({ method: 'get', @@ -18,6 +19,9 @@ const handler: RouteHandler = (ctx) => description: config.follow.description, price: config.follow.price, userLimit: config.follow.userLimit, + cacheTime: config.cache.routeExpire, + gitHash, + gitDate: gitDate?.getTime(), }); export { route, handler };