ATlast — you'll never need to find your favorites on another platform again. Find your favs in the ATmosphere.
atproto
1import { SimpleHandler } from "./core/types/api.types";
2import { successResponse } from "./utils";
3import { withErrorHandling } from "./core/middleware";
4
5/**
6 * Health check endpoint
7 * Returns 200 OK with server status
8 */
9const healthHandler: SimpleHandler = async (event) => {
10 return successResponse(
11 {
12 status: "ok",
13 timestamp: new Date().toISOString(),
14 },
15 200,
16 {},
17 event
18 );
19};
20
21export const handler = withErrorHandling(healthHandler);