feat: expose API markdown doc
This commit is contained in:
@@ -10,6 +10,15 @@ server {
|
||||
}
|
||||
|
||||
|
||||
|
||||
# Markdown 接口说明,直接返回文本内容
|
||||
location = /apidoc {
|
||||
default_type text/markdown;
|
||||
charset utf-8;
|
||||
try_files /apidoc =404;
|
||||
add_header Cache-Control "no-store";
|
||||
}
|
||||
|
||||
# 知识库静态 JSON API,接口路径不存在时返回 404,避免被 SPA 回退到 index.html
|
||||
location /api/ {
|
||||
try_files $uri =404;
|
||||
|
||||
Reference in New Issue
Block a user