service status on atproto

feat: add _health route

ptr.pet ca447045 356aadf7

verified
Changed files
+9 -2
proxy
+1 -1
proxy/gen-routes.ts
··· 21 21 routeImports.push(`import ${routeName}Route from "./${routeName}";`); 22 22 23 23 // Generate route map entry 24 - routeMap.push(` "${routePath}": ${routeName}Route,`); 24 + routeMap.push(` "${routePath}": ${routeName}Route`); 25 25 } 26 26 27 27 // Generate the complete index.ts content
+5
proxy/src/routes/_health.ts
··· 1 + const GET = async (req: Bun.BunRequest) => { 2 + return new Response(JSON.stringify({ version: "0.1.0" })); 3 + }; 4 + 5 + export default { GET };
+3 -1
proxy/src/routes/index.ts
··· 1 1 // Auto-generated route index 2 + import _healthRoute from "./_health"; 2 3 import pushRoute from "./push"; 3 4 4 5 export const routes = { 5 - "/push": pushRoute, 6 + "/_health": _healthRoute, 7 + "/push": pushRoute 6 8 }; 7 9 8 10 export default routes;