feat: add knowledge API docs

This commit is contained in:
ittoview
2026-05-09 16:52:07 +01:00
parent 1b9f6da480
commit 1e38167f15
372 changed files with 18581 additions and 2 deletions

View File

@@ -9,6 +9,13 @@ server {
try_files $uri $uri/ /index.html;
}
# 知识库静态 JSON API接口路径不存在时返回 404避免被 SPA 回退到 index.html
location /api/ {
try_files $uri =404;
add_header Cache-Control "no-store";
}
# 一图流图片目录,由 Docker 挂载提供,支持运行时新增图片
location /learning-images/ {
alias /usr/share/nginx/html/learning-images/;