feat: add knowledge API docs
This commit is contained in:
@@ -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/;
|
||||
|
||||
Reference in New Issue
Block a user