适配引擎升级

This commit is contained in:
dexter
2022-01-10 08:33:22 +08:00
parent 2261e0efb7
commit f6394762ea
3 changed files with 25 additions and 26 deletions

View File

@@ -20,12 +20,11 @@ var config = struct {
}{1}
func init() {
plugin := &PluginConfig{
plugin := PluginConfig{
Name: "Summary",
Config: &config,
Run: Summary.StartSummary,
}
InstallPlugin(plugin)
plugin.Install(Summary.StartSummary)
http.HandleFunc("/api/summary", summary)
}
func summary(w http.ResponseWriter, r *http.Request) {