post method doc

This commit is contained in:
narzeja 2016-10-22 08:48:19 +02:00
parent 96c13fe23c
commit c3628407eb

View File

@ -51,8 +51,8 @@ app = Sanic('peewee_example')
@app.route('/post')
async def post(request):
""" This is actually a GET request, you probably want POST in real life,
with some data parameters"""
""" This actually requires a GET request, you probably want POST in real
life, with some data parameters"""
obj = await objects.create(KeyValue, key='my_first_async_db', text="I was inserted asynchronously!")
return json({'object_id': obj.id})