read configs from env
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
from flask import Blueprint, jsonify
|
||||
|
||||
import env_provider
|
||||
from api import limiter
|
||||
config_bp = Blueprint('config', __name__, url_prefix='/api/config')
|
||||
|
||||
@config_bp.route('/server_host', methods=['GET'])
|
||||
@limiter.limit("120 per minute")
|
||||
def server_host():
|
||||
print(env_provider.SERVER_HOST)
|
||||
return jsonify({"value": env_provider.SERVER_HOST}), 200
|
||||
|
||||
@config_bp.route('/kc_client_id', methods=['GET'])
|
||||
@limiter.limit("120 per minute")
|
||||
def kc_client_id():
|
||||
print(env_provider.APP_CLIENT_ID)
|
||||
return jsonify({"value": env_provider.APP_CLIENT_ID}), 200
|
||||
|
||||
Reference in New Issue
Block a user