🐛: 修复一些小bug
This commit is contained in:
parent
4ffaa5a938
commit
4dc483a303
2 changed files with 7 additions and 2 deletions
|
|
@ -119,13 +119,16 @@ description = f"""
|
||||||
- If you need a more stable and feature-rich API service, you can use the paid API service: [TikHub API](https://beta.tikhub.io)
|
- If you need a more stable and feature-rich API service, you can use the paid API service: [TikHub API](https://beta.tikhub.io)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
docs_url = config['API']['Docs_URL']
|
||||||
|
redoc_url = config['API']['Redoc_URL']
|
||||||
|
|
||||||
app = FastAPI(
|
app = FastAPI(
|
||||||
title="Douyin TikTok Download API",
|
title="Douyin TikTok Download API",
|
||||||
description=description,
|
description=description,
|
||||||
version=version,
|
version=version,
|
||||||
openapi_tags=tags_metadata,
|
openapi_tags=tags_metadata,
|
||||||
docs_url='/docs', # 文档路径
|
docs_url=docs_url, # 文档路径
|
||||||
redoc_url='/redoc', # redoc文档路径
|
redoc_url=redoc_url, # redoc文档路径
|
||||||
)
|
)
|
||||||
|
|
||||||
# API router
|
# API router
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,8 @@ API:
|
||||||
# Network Configuration
|
# Network Configuration
|
||||||
Host_IP: 0.0.0.0 # use 127.0.0.1 for local access only | 仅本地访问请使用
|
Host_IP: 0.0.0.0 # use 127.0.0.1 for local access only | 仅本地访问请使用
|
||||||
Host_Port: 80 # default port is 80 | 默认端口为80
|
Host_Port: 80 # default port is 80 | 默认端口为80
|
||||||
|
Docs_URL: /docs # API documentation URL | API文档URL
|
||||||
|
Redoc_URL: /redoc # API documentation URL | API文档URL
|
||||||
|
|
||||||
# API Information
|
# API Information
|
||||||
Version: V4.0.0 # API version | API版本
|
Version: V4.0.0 # API version | API版本
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue