Skip to content

Commit

Permalink
新增文件浏览、上传和下载功能,以及ChatGPT相关接口- 添加文件浏览、上传和下载的API接口
Browse files Browse the repository at this point in the history
- 新增ChatGPT的POST和SSE接口
- 优化API路由的组织结构
  • Loading branch information
weibaohui committed Oct 17, 2024
1 parent 283c671 commit 4dc3624
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,15 @@ func main() {
api.GET("/doc/gvk/:api_version/:kind", doc.Doc)
api.POST("/doc/detail", doc.Detail)

// chatgpt
api.POST("/chat", chat.Chat)
api.GET("/chat/sse", chat.Sse)

// pod 文件浏览上传下载
api.GET("/file/list", pod.FileListHandler)
api.POST("/file/show", pod.ShowFileHandler)
api.POST("/file/save", pod.SaveFileHandler)

// k8s pod
// http://127.0.0.1:3618/k8s/doc/gvk/stable.example.com%2Fv1/CronTab

Expand Down

0 comments on commit 4dc3624

Please sign in to comment.