MCPcopy
hub / github.com/Asabeneh/30-Days-Of-Python / post

Function post

python_for_web/app.py:29–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28@app.route('/post', methods=['GET', 'POST'])
29def post():
30 name = 'Text Analyzer'
31 if request.method == 'GET':
32 return render_template('post.html', name=name, title=name)
33 if request.method == 'POST':
34 content = request.form['content']
35 return redirect(url_for('result'))
36
37
38if __name__ == '__main__':

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected