Spaces:
Paused
Paused
BinaryONe commited on
Commit ·
b1b63e6
1
Parent(s): a0cb61a
Changes
Browse files- WebSSH/AppHandler.py +2 -1
WebSSH/AppHandler.py
CHANGED
|
@@ -9,6 +9,7 @@ class AppHandler(tornado.web.RequestHandler):
|
|
| 9 |
template_folder = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'WebSSH', 'templates')
|
| 10 |
|
| 11 |
def get(self):
|
|
|
|
| 12 |
self.render(os.path.join(self.template_folder, 'index.html'))
|
| 13 |
|
| 14 |
def function_two(self):
|
|
@@ -16,7 +17,7 @@ class AppHandler(tornado.web.RequestHandler):
|
|
| 16 |
self.write("Function One Called")
|
| 17 |
|
| 18 |
def run_commands(self):
|
| 19 |
-
print(self.request)
|
| 20 |
data = json.loads(self.request.body)
|
| 21 |
command = data.get("command")
|
| 22 |
print(f"Command: {command}")
|
|
|
|
| 9 |
template_folder = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'WebSSH', 'templates')
|
| 10 |
|
| 11 |
def get(self):
|
| 12 |
+
print(self.request)
|
| 13 |
self.render(os.path.join(self.template_folder, 'index.html'))
|
| 14 |
|
| 15 |
def function_two(self):
|
|
|
|
| 17 |
self.write("Function One Called")
|
| 18 |
|
| 19 |
def run_commands(self):
|
| 20 |
+
print(self.request, self.body)
|
| 21 |
data = json.loads(self.request.body)
|
| 22 |
command = data.get("command")
|
| 23 |
print(f"Command: {command}")
|