mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Add comment
This commit is contained in:
parent
3bfb6bc4c4
commit
e6005b9fe0
@ -17,6 +17,9 @@ def get_transaction(tx_id):
|
||||
@basic_views.route('/tx/', methods=['POST'])
|
||||
def create_transaction():
|
||||
val = {}
|
||||
|
||||
# `force` will try to format the body of the POST request even if the `content-type` header is not
|
||||
# set to `application/json`
|
||||
tx = request.get_json(force=True)
|
||||
|
||||
if tx['transaction']['operation'] == 'CREATE':
|
||||
|
Loading…
x
Reference in New Issue
Block a user