Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
waketzheng committed Jun 20, 2024
1 parent 62a4239 commit b431805
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,18 @@ from fastapi_cdn_host import CdnHostEnum, CdnHostItem
fastapi_cdn_host.patch_docs(
app,
docs_cdn_host=CdnHostEnum.extend(
('https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M', ('/swagger-ui/{version}/', '')), # 字节
('https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M', ('/swagger-ui/{version}/', '')),
CdnHostItem('https://raw.githubusercontent.com/swagger-api/swagger-ui/v5.14.0/dist/swagger-ui.css'), # github
)
)
```

## 不修改源代码只是启动时加载插件的方式:

```bash
fastcdn main.py
```

## 许可证

[MIT](./LICENSE)

0 comments on commit b431805

Please sign in to comment.