|
@@ -35,6 +35,7 @@ import (
|
|
|
department "wechat-api/internal/handler/department"
|
|
|
employee "wechat-api/internal/handler/employee"
|
|
|
employee_config "wechat-api/internal/handler/employee_config"
|
|
|
+ fastgpt "wechat-api/internal/handler/fastgpt"
|
|
|
label "wechat-api/internal/handler/label"
|
|
|
label_relationship "wechat-api/internal/handler/label_relationship"
|
|
|
label_tagging "wechat-api/internal/handler/label_tagging"
|
|
@@ -2130,4 +2131,19 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
|
|
),
|
|
|
rest.WithJwt(serverCtx.Config.Auth.AccessSecret),
|
|
|
)
|
|
|
+
|
|
|
+ server.AddRoutes(
|
|
|
+ []rest.Route{
|
|
|
+ {
|
|
|
+ Method: http.MethodGet,
|
|
|
+ Path: "/api/fastgpt/set_token",
|
|
|
+ Handler: fastgpt.SetTokenHandler(serverCtx),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ Method: http.MethodPost,
|
|
|
+ Path: "/api/fastgpt/create",
|
|
|
+ Handler: fastgpt.CreateFastgptHandler(serverCtx),
|
|
|
+ },
|
|
|
+ },
|
|
|
+ )
|
|
|
}
|