feat: introduce pydantic-settings for config definition and validation (#5202)
Co-authored-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
@@ -2,7 +2,7 @@ from flask import Flask
|
||||
|
||||
|
||||
def init_app(app: Flask):
|
||||
if app.config.get('API_COMPRESSION_ENABLED', False):
|
||||
if app.config.get('API_COMPRESSION_ENABLED'):
|
||||
from flask_compress import Compress
|
||||
|
||||
app.config['COMPRESS_MIMETYPES'] = [
|
||||
|
Reference in New Issue
Block a user