@app.route('/author/new')
def new_author():
    author = Author(name=request.args.get('name', ''))
    author.save()
    return 'Saved :)'
Creates a new author by a giving name (via GET parameter)
dataset/ETHPy150Open cobrateam/flask-mongoalchemy/examples/library/library.py/new_author