We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e553e4 commit 2a08c77Copy full SHA for 2a08c77
main.py
@@ -1,5 +1,7 @@
1
import requests
2
import subprocess
3
+from django.http import HttpResponse
4
+from django.views import View
5
6
if __name__ == '__main__':
7
formats.get_format()
@@ -21,4 +23,8 @@
21
23
command = "ping " + user_input
22
24
subprocess.call(command, shell=True)
25
- print("Command executed!")
26
+ print("Command executed!")
27
+
28
+class HealthCheckView(View):
29
+ def get(self, request):
30
+ return HttpResponse("ok", content_type='text/plain')
0 commit comments