Spaces:
Sleeping
Sleeping
Add on_get
Browse files- api/resources/root.py +5 -0
api/resources/root.py
CHANGED
|
@@ -12,6 +12,11 @@ class RootResource:
|
|
| 12 |
self.main_lock = Lock()
|
| 13 |
self.task_locks = {}
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
def on_post(self, request, response):
|
| 16 |
payload = request.media
|
| 17 |
|
|
|
|
| 12 |
self.main_lock = Lock()
|
| 13 |
self.task_locks = {}
|
| 14 |
|
| 15 |
+
def on_get(self, request, response):
|
| 16 |
+
response.media = {
|
| 17 |
+
'title': 'HumanEval for Solidity Server'
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
def on_post(self, request, response):
|
| 21 |
payload = request.media
|
| 22 |
|