Skip to content

Commit c96fde4

Browse files
author
patched.codes[bot]
committed
Patched main.py
1 parent 9e553e4 commit c96fde4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

main.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import requests
22
import subprocess
3+
from django.http import HttpResponse
4+
from django.views import View
35

46
if __name__ == '__main__':
57
formats.get_format()
@@ -21,4 +23,9 @@
2123
command = "ping " + user_input
2224
subprocess.call(command, shell=True)
2325

24-
print("Command executed!")
26+
print("Command executed!")
27+
28+
29+
class HealthCheckView(View):
30+
def get(self, request):
31+
return HttpResponse('ok')

0 commit comments

Comments
 (0)