yuripeyamashita
commited on
Commit
•
94a125f
1
Parent(s):
fabdd78
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
from flask import Flask, request
|
2 |
-
import os
|
3 |
import requests
|
4 |
|
5 |
app = Flask(__name__)
|
@@ -16,7 +16,7 @@ def server():
|
|
16 |
token = request.json.get('token')
|
17 |
URL = request.json.get('URL')
|
18 |
postData = request.json.get('postData')
|
19 |
-
reqList[token] = { 'URL': URL, 'postData': postData }
|
20 |
print(reqList[token])
|
21 |
return { 'success': True }, 200
|
22 |
|
|
|
1 |
from flask import Flask, request
|
2 |
+
import os, json
|
3 |
import requests
|
4 |
|
5 |
app = Flask(__name__)
|
|
|
16 |
token = request.json.get('token')
|
17 |
URL = request.json.get('URL')
|
18 |
postData = request.json.get('postData')
|
19 |
+
reqList[token] = { 'URL': URL, 'postData': json.loads(postData) }
|
20 |
print(reqList[token])
|
21 |
return { 'success': True }, 200
|
22 |
|