You've already forked my-video-workflow
去除PROD_ENV依赖
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
from flask import Blueprint, jsonify, request
|
||||
from flask.helpers import get_env
|
||||
|
||||
from config import get_config, write_config, load_config, PROD_ENV
|
||||
from config import get_config, write_config, load_config
|
||||
|
||||
blueprint = Blueprint("api_config", __name__, url_prefix="/api/config")
|
||||
|
||||
@ -13,7 +14,7 @@ def get_global_config():
|
||||
@blueprint.get("/env")
|
||||
def get_current_env():
|
||||
return jsonify({
|
||||
"prod": PROD_ENV
|
||||
"prod": get_env() == "production"
|
||||
})
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user