+4
-1
src/pds.js
+4
-1
src/pds.js
···
31
// โ Environment bindings, SQL row types, protocol constants โ
32
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
33
34
// CBOR primitive markers (RFC 8949)
35
const CBOR_FALSE = 0xf4;
36
const CBOR_TRUE = 0xf5;
···
5234
5235
// Health check endpoint
5236
if (url.pathname === '/xrpc/_health') {
5237
-
return Response.json({ version: '0.1.0' });
5238
}
5239
5240
// Root path - ASCII art
···
31
// โ Environment bindings, SQL row types, protocol constants โ
32
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
33
34
+
// PDS version (keep in sync with package.json)
35
+
const VERSION = '0.3.0';
36
+
37
// CBOR primitive markers (RFC 8949)
38
const CBOR_FALSE = 0xf4;
39
const CBOR_TRUE = 0xf5;
···
5237
5238
// Health check endpoint
5239
if (url.pathname === '/xrpc/_health') {
5240
+
return Response.json({ version: VERSION });
5241
}
5242
5243
// Root path - ASCII art