保存现有功能 增加域名和添加时间关联

This commit is contained in:
huangzhenpc
2025-03-01 11:26:31 +08:00
parent 0720ee9110
commit ea0af99c47

View File

@@ -46,7 +46,7 @@ def create_app():
domains = get_allowed_domains() domains = get_allowed_domains()
return jsonify(domains), 200 return jsonify(domains), 200
@app.route('/allowed_domains_with_time', methods=['GET']) @app.route('/allowed_domains/list_with_time', methods=['GET'])
def list_domains_with_time(): def list_domains_with_time():
domains_with_time = get_allowed_domains_with_time() domains_with_time = get_allowed_domains_with_time()
return jsonify(domains_with_time), 200 return jsonify(domains_with_time), 200