refactor: use dify_config to replace legacy usage of flask app's config (#9089)
This commit is contained in:
parent
8f670f31b8
commit
4d9160ca9f
27 changed files with 221 additions and 207 deletions
|
|
@ -1,8 +1,10 @@
|
|||
from flask import Flask
|
||||
|
||||
from configs import dify_config
|
||||
|
||||
|
||||
def init_app(app: Flask):
|
||||
if app.config.get("API_COMPRESSION_ENABLED"):
|
||||
if dify_config.API_COMPRESSION_ENABLED:
|
||||
from flask_compress import Compress
|
||||
|
||||
app.config["COMPRESS_MIMETYPES"] = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue