mirror of
https://github.com/hanzoai/sign.git
synced 2026-11-02 23:26:15 +00:00
The resource API is /v1/rest and the operation API is /v1/rpc: named for what they are, so neither shadows the other, and the v2-beta alias is gone. Hanzo IAM returns to /auth/callback, the callback path IAM already derives for this host, so sign-in needs no IAM change. Claude-Session: https://claude.ai/code/session_01TUxvfuta1Z44KVNYuAz71F
21 lines
459 B
TypeScript
21 lines
459 B
TypeScript
import { getCertificateStatus } from '@hanzo/esign-lib/server-only/cert/cert-status';
|
|
|
|
export const loader = () => {
|
|
try {
|
|
const certStatus = getCertificateStatus();
|
|
|
|
return Response.json({
|
|
isAvailable: certStatus.isAvailable,
|
|
timestamp: new Date().toISOString(),
|
|
});
|
|
} catch {
|
|
return Response.json(
|
|
{
|
|
isAvailable: false,
|
|
timestamp: new Date().toISOString(),
|
|
},
|
|
{ status: 500 },
|
|
);
|
|
}
|
|
};
|