From fbbe38f2f6e23289ce8e18e4fe5c28b507b3e9d4 Mon Sep 17 00:00:00 2001 From: Dillon Nys <24740863+dnys1@users.noreply.github.com> Date: Wed, 7 Feb 2024 16:28:13 -0800 Subject: [PATCH] chore(runtime): Add health endpoint (#30) --- packages/celest/lib/src/runtime/serve.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/celest/lib/src/runtime/serve.dart b/packages/celest/lib/src/runtime/serve.dart index 185d9a5e..4c352f7a 100644 --- a/packages/celest/lib/src/runtime/serve.dart +++ b/packages/celest/lib/src/runtime/serve.dart @@ -18,7 +18,7 @@ const int defaultCelestPort = 7777; Future serve({ required Map targets, }) async { - final router = Router(); + final router = Router()..get('/_health', (_) => Response.ok('OK')); for (final MapEntry(key: route, value: target) in targets.entries) { router.post(route, target._handler); }