Browse Source

GET + /health

Yuriy Zhilovets 7 năm trước cách đây
mục cha
commit
287c9ea61e
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      telegram.pl

+ 5 - 0
telegram.pl

@@ -76,6 +76,11 @@ hook after_dispatch => sub
 
 ##########################
 
+get "/health" => sub
+{
+  shift->render(text => "Telegram OK");
+}
+
 post "/:token" => sub
 {
   my $c = shift;