From 80a271c6e653a005e47e841ac77fa39ad039e9bc Mon Sep 17 00:00:00 2001 From: levywang Date: Tue, 11 Mar 2025 11:17:00 +0800 Subject: [PATCH] first commit --- nginx.example.conf | 2 +- web/script.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx.example.conf b/nginx.example.conf index a748323..f177390 100644 --- a/nginx.example.conf +++ b/nginx.example.conf @@ -3,7 +3,7 @@ server { listen [::]:80; server_name _; index index.php index.html index.htm default.php default.htm default.html; - root /app; + root /app/web; location /api/ { proxy_pass http://127.0.0.1:8000/; diff --git a/web/script.js b/web/script.js index dd8431b..8a85814 100644 --- a/web/script.js +++ b/web/script.js @@ -49,7 +49,7 @@ function switchTab(tabName) { // 添加 API 配置 const API_CONFIG = { - BASE_URL: 'https://api.imwlw.com/v1', + BASE_URL: '/api/v1', ENDPOINTS: { SEARCH: '/avcode', COLLECTIONS: '/hacg',