Commit 8b1c09c9 authored by 崔为之's avatar 崔为之 💪🏽

Update project

parent 704a5a87
......@@ -13,6 +13,7 @@
from flask import Flask
from .init_config import init_config
from .init_cors import init_cors
from .init_logger import init_logger
from .init_sqlalchemy import init_database
from .init_bcrypt import init_bcrypt
......@@ -31,3 +32,4 @@ def init_plugs(app: Flask) -> None:
init_apispec(app)
init_marshmallow(app)
init_elasticsearch(app)
init_cors(app)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
# @Version : Python 3.11.4
# @Software : Sublime Text 4
# @Author : StudentCWZ
# @Email : StudentCWZ@outlook.com
# @Date : 2023/11/4 15:43
# @File : init_cors.py
# @Description :
"""
from flask import Flask
from flask_cors import CORS
def init_cors(app: Flask) -> None:
"""
Initialize the dynaconf extension
:param app: flask.Flask application instance
:return: None
"""
CORS(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