Explorar o código

GET + /health

Yuriy Zhilovets %!s(int64=7) %!d(string=hai) anos
pai
achega
287c9ea61e
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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;