学习资料
* github
* 官方文档
* 项目代码
学习记录
- 中间件
# Configure your WSGI server to load "things.app" (app is a WSGI callable)
app = falcon.API(middleware=[
AuthMiddleware(),
RequireJSON(),
JSONTranslator(),
])
快速搭建
- 按照文档操作即可
waitress-serve --port=8000 things:app
# things 模块名称
# app 变量名称