Skip to content

Commit

Permalink
feat: update follow api
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Jan 9, 2025
1 parent 74f7acb commit 4fb6d09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/api/follow/config.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -18,6 +19,9 @@ const handler: RouteHandler<typeof route> = (ctx) =>
description: config.follow.description,
price: config.follow.price,
userLimit: config.follow.userLimit,
cacheTime: config.cache.routeExpire,
gitHash,
gitDate: gitDate?.getTime(),
});

export { route, handler };

0 comments on commit 4fb6d09

Please sign in to comment.