We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e553e4 commit 03f1984Copy full SHA for 03f1984
1 file changed
main.py
@@ -1,3 +1,6 @@
1
+from django.http import HttpResponse
2
+from django.views import View
3
+
4
import requests
5
import subprocess
6
@@ -21,4 +24,9 @@
21
24
command = "ping " + user_input
22
25
subprocess.call(command, shell=True)
23
26
- print("Command executed!")
27
+ print("Command executed!")
28
29
30
+class HealthCheckView(View):
31
+ def get(self, request):
32
+ return HttpResponse("ok")
0 commit comments