Explorar el Código

GET + /health

Yuriy Zhilovets hace 7 años
padre
commit
287c9ea61e
Se han modificado 1 ficheros con 5 adiciones y 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;