File tree Expand file tree Collapse file tree 4 files changed +20
-1
lines changed Expand file tree Collapse file tree 4 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1+ flask
Original file line number Diff line number Diff line change 1+ from flask import Flask , jsonify
2+
3+ app = Flask (__name__ )
4+
5+ @app .route ('/login' , methods = ['POST' ])
6+ def login ():
7+ app .logger .debug (f'login success.' )
8+ return jsonify (
9+ {
10+ "code" : 200
11+ }
12+ )
13+
14+ if __name__ == '__main__' :
15+ app .run (debug = True , port = 5000 )
Original file line number Diff line number Diff line change 1+ flask
Original file line number Diff line number Diff line change 121210 . [ 表单处理] ( https://xugaoxiang.com/2020/07/09/flask-10-wtf/ )
131311 . [ 数据库操作flask-sqlalchemy] ( https://xugaoxiang.com/2020/07/14/flask-11-sqlalchemy/ )
141412 . [ 项目部署] ( https://xugaoxiang.com/2020/07/21/flask-12-deployment/ )
15- 13 . [ 常用项目结构] ( https://xugaoxiang.com/2020/08/19/flask-13-project-struture/ )
15+ 13 . [ 常用项目结构] ( https://xugaoxiang.com/2020/08/19/flask-13-project-struture/ )
16+ 14 . [ 蓝图] ( https://xugaoxiang.com/2020/08/24/flask-14-blueprint/ )
17+ 15 . [ 日志] ( https://xugaoxiang.com/2020/08/25/flask-15-logging/ )
You can’t perform that action at this time.
0 commit comments