diff --git a/README.md b/README.md index e343138..76d0693 100644 --- a/README.md +++ b/README.md @@ -80,17 +80,17 @@ > [!NOTE] > 本项目优先支持从 [Folo](https://app.follow.is/) 数据源抓取内容。 > 您只需通过F12获取Folo Cookie,并将其配置到项目中即可在线试用。 -> Folo Cookie只保留在浏览器,没有安全隐患。 > [!WARNING] -> **注意:** 为了保证项目的正常运行,您需要在项目中配置 Folo Cookie。 +> 为了保证项目的正常运行,您需要在项目中配置 Folo Cookie。 +> Folo Cookie只保留在浏览器,没有安全隐患。 1. **获取Folo Cookie** [![cookie](docs/images/folo-0.png "img")](docs/images/folo-0.png) 2. **[Demo 地址](https://ai-daily-demo.justlikemaki.workers.dev/getContentHtml)** - + * 默认账号密码:root/toor --- ## 📚 更多文档 @@ -108,7 +108,7 @@ AI 或许能模仿你过去的喜好,却难以捕捉你此刻的灵感与洞见。 -`手动勾选`这一步,正是为了保留这份属于“人”的、不断演进的独特视角。它确保了日报的灵魂——**你的思想和判断力**——始终贯穿其中,让每一份日报都成为你当日思考的真实快照。 +`手动勾选`这一步,正是为了保留这份属于“人”的、不断演进的独特视角。它确保了日报的灵魂`你的思想和判断力`,始终贯穿其中,让每一份日报都成为你当日思考的真实快照。 当然,我们也完全支持并欢迎社区开发者探索全自动化的实现方式。如果你有更棒的想法,请随时提交 Pull Request! diff --git a/docs/DEPLOYMENT.md b/docs/DEPLOYMENT.md index ca3cd24..306b3be 100644 --- a/docs/DEPLOYMENT.md +++ b/docs/DEPLOYMENT.md @@ -129,6 +129,9 @@ TWITTER_FETCH_PAGES = "2" ``` 该命令会启动一个本地服务器(通常在 `http://localhost:8787`),您可以直接在浏览器中访问以进行调试。 +- **默认开始路径**: + * 路径:/getContentHtml?date=YYYY-MM-DD (GET) + #### 4. 部署到 Cloudflare - **登录 Cloudflare**: diff --git a/src/index.js b/src/index.js index c0b7f7a..d9bdf0d 100644 --- a/src/index.js +++ b/src/index.js @@ -76,16 +76,6 @@ export default { } else if (path === '/commitToGitHub' && request.method === 'POST') { response = await handleCommitToGitHub(request, env); } else { - // const availableEndpoints = [ - // "/writeData (POST) - Fetches, filters, translates, and stores data for today.", - // "/getContent?date=YYYY-MM-DD (GET) - Retrieves stored data as JSON.", - // "/getContentHtml?date=YYYY-MM-DD (GET) - Displays stored data as HTML with selection.", - // "/genAIContent (POST) - Generates summary from selected items. Expects 'date' and 'selectedItems' form data.", - // "/commitToGitHub (POST) - Commits generated content to GitHub. Triggered from /genAIContent result page.", - // "/logout (GET) - Clears the login cookie and redirects." - // ]; - // let responseBody = `Not Found. Available endpoints:\n\n${availableEndpoints.map(ep => `- ${ep}`).join('\n')}\n\nSpecify a date parameter (e.g., ?date=2023-10-27) for content endpoints or they will default to today.`; - // return new Response(responseBody, { status: 404, headers: {'Content-Type': 'text/plain; charset=utf-8'} }); return new Response(null, { status: 404, headers: {'Content-Type': 'text/plain; charset=utf-8'} }); } } catch (e) {