mirror of
https://github.com/hanzoai/sign.git
synced 2026-10-21 01:21:51 +00:00
Mechanical brand swap across user-visible strings only. Internal package identifiers (@hanzo/sign-*), database column names, and upstream npm package names are unchanged so existing installs and APIs keep working. - 'Hanzo Sign' → 'Hanzo eSign' in README, docs, marketing pages, email copy, UI strings, page titles, meta tags, alt text. - sign.hanzo.ai → esign.hanzo.ai on every marketing link, FROM_ADDRESS fallback ([email protected]), support email, OAuth callback hosts, documentation domain, OG image URL. - github.com/hanzoai/sign → github.com/hanzoai/esign in README badges, CONTRIBUTING, docs, deploy workflow, openpage-api github proxy routes.
29 lines
666 B
TypeScript
29 lines
666 B
TypeScript
import cors from '@/lib/cors';
|
|
|
|
export async function GET(request: Request) {
|
|
const res = await fetch(
|
|
'https://api.github.com/search/issues?q=repo:hanzoai/esign/+is:pr+merged:>=2010-01-01&page=0&per_page=1',
|
|
);
|
|
const { total_count } = await res.json();
|
|
|
|
return cors(
|
|
request,
|
|
new Response(JSON.stringify({ data: total_count }), {
|
|
status: 200,
|
|
headers: {
|
|
'content-type': 'application/json',
|
|
'Cache-Control': 'public, s-maxage=3600, stale-while-revalidate=7200',
|
|
},
|
|
}),
|
|
);
|
|
}
|
|
|
|
export function OPTIONS(request: Request) {
|
|
return cors(
|
|
request,
|
|
new Response(null, {
|
|
status: 204,
|
|
}),
|
|
);
|
|
}
|