From 674f3d42a708a191464a364a57022c8111ddaa87 Mon Sep 17 00:00:00 2001 From: DelLevin-Home Date: Wed, 28 Jan 2026 22:07:22 +0800 Subject: [PATCH] 2 --- 2.base64-de-in-code/api.py | 6 +++ .../templates/en-de-code-index.html | 2 +- 2.base64-de-in-code/templates/index.html | 37 +++++++++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 2.base64-de-in-code/templates/index.html diff --git a/2.base64-de-in-code/api.py b/2.base64-de-in-code/api.py index 4f6fc46..d572c21 100644 --- a/2.base64-de-in-code/api.py +++ b/2.base64-de-in-code/api.py @@ -4,6 +4,12 @@ import proj_utils.utils as utils # 导入你的工具模块 app = Flask(__name__) + +@app.route('/') +def index(): + """渲染主页模板""" + return render_template('index.html') + @app.route('/en-de-code') def index(): """渲染主页模板""" diff --git a/2.base64-de-in-code/templates/en-de-code-index.html b/2.base64-de-in-code/templates/en-de-code-index.html index 3246ece..020c0d9 100644 --- a/2.base64-de-in-code/templates/en-de-code-index.html +++ b/2.base64-de-in-code/templates/en-de-code-index.html @@ -3,7 +3,7 @@ - Base64/编码检测与解码器 (Flask) + Base64/编码检测与解码器 diff --git a/2.base64-de-in-code/templates/index.html b/2.base64-de-in-code/templates/index.html new file mode 100644 index 0000000..65622df --- /dev/null +++ b/2.base64-de-in-code/templates/index.html @@ -0,0 +1,37 @@ + + + + + + 白荼 - BAITU + + + + + + +

恭喜你,来到了一片荒芜之地

+ + + \ No newline at end of file