This commit is contained in:
laodaming
2023-10-10 15:09:20 +08:00
parent 056fed40f1
commit ce31946e53
3 changed files with 6 additions and 6 deletions

View File

@@ -33,7 +33,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
Handler: TestAiHandler(serverCtx),
},
{
Method: http.MethodGet,
Method: http.MethodPost,
Path: "/api/collection/test_pdf",
Handler: TestPdfHandler(serverCtx),
},

View File

@@ -45,8 +45,8 @@ type TestAiReq struct {
}
type TestPdfReq struct {
Content string `form:"content"`
Type string `form:"type"`
Content string `json:"content"`
Type string `json:"type"`
}
type Request struct {