|
@@ -2156,6 +2156,21 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
|
|
Path: "/api/fastgpt/apps_list",
|
|
|
Handler: fastgpt.GetAppsListHandler(serverCtx),
|
|
|
},
|
|
|
+ {
|
|
|
+ Method: http.MethodPost,
|
|
|
+ Path: "/api/fastgpt/create_app",
|
|
|
+ Handler: fastgpt.CreateAppHandler(serverCtx),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ Method: http.MethodPost,
|
|
|
+ Path: "/api/fastgpt/update_app",
|
|
|
+ Handler: fastgpt.UpdateAppHandler(serverCtx),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ Method: http.MethodPost,
|
|
|
+ Path: "/api/fastgpt/delete_app",
|
|
|
+ Handler: fastgpt.DeleteAppHandler(serverCtx),
|
|
|
+ },
|
|
|
}...,
|
|
|
),
|
|
|
rest.WithJwt(serverCtx.Config.Auth.AccessSecret),
|