소스 검색

GET + /health

Yuriy Zhilovets 7 년 전
부모
커밋
287c9ea61e
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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;