Skip to content

Commit

Permalink
chore(runtime): Add health endpoint (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnys1 authored Feb 8, 2024
1 parent 7bbb372 commit fbbe38f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/celest/lib/src/runtime/serve.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const int defaultCelestPort = 7777;
Future<void> serve({
required Map<String, CloudFunctionTarget> 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);
}
Expand Down

0 comments on commit fbbe38f

Please sign in to comment.