Commit eada417c authored by 崔为之's avatar 崔为之 💪🏽

Update project

parent d54b14b4
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# @Email : StudentCWZ@outlook.com # @Email : StudentCWZ@outlook.com
# @Date : 2023/10/28 12:50 # @Date : 2023/10/28 12:50
# @File : __init__.py # @File : __init__.py
# @Description : # @Description : Initializes various plugins for a Flask application.
""" """
......
...@@ -7,21 +7,24 @@ ...@@ -7,21 +7,24 @@
# @Email : StudentCWZ@outlook.com # @Email : StudentCWZ@outlook.com
# @Date : 2023/10/29 12:01 # @Date : 2023/10/29 12:01
# @File : init_apispec.py # @File : init_apispec.py
# @Description : # @Description : Initializes the FlaskApiSpec extension for a Flask application.
""" """
from flask import Flask from flask import Flask
from flask_apispec import FlaskApiSpec from flask_apispec import FlaskApiSpec
# 初始化 flask-apispec # Initialize FlaskApiSpec
apispec = FlaskApiSpec() apispec = FlaskApiSpec()
def init_apispec(app: Flask) -> None: def init_apispec(app: Flask) -> None:
""" """
Initialize the ApiSpec extension Initializes the FlaskApiSpec extension for a Flask application.
:param app: flask.Flask application instance Args:
:return: None app (Flask): The Flask application.
Returns:
None
""" """
apispec.init_app(app) apispec.init_app(app)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment