作者 庄敏学

fixed

@@ -72,7 +72,7 @@ func init() { @@ -72,7 +72,7 @@ func init() {
72 web.InsertFilter("/v1/cost/*", web.BeforeRouter, middleware.CheckAccessToken()) 72 web.InsertFilter("/v1/cost/*", web.BeforeRouter, middleware.CheckAccessToken())
73 web.InsertFilter("/v1/cost/*", web.BeforeRouter, middleware.RedirectInternalService("/v1/cost", cost_structured.NewHttpLibCostStructured(domain.Operator{}))) 73 web.InsertFilter("/v1/cost/*", web.BeforeRouter, middleware.RedirectInternalService("/v1/cost", cost_structured.NewHttpLibCostStructured(domain.Operator{})))
74 web.InsertFilter("/v1/chart-editor/*", web.BeforeRouter, middleware.CheckAccessToken()) 74 web.InsertFilter("/v1/chart-editor/*", web.BeforeRouter, middleware.CheckAccessToken())
75 - web.InsertFilter("/v1/chart-editor/*", web.BeforeRouter, middleware.RedirectInternalService("/chart-editor", chart_editor.NewHttpLibAlliedChartEditor(domain.Operator{}))) 75 + web.InsertFilter("/v1/chart-editor/*", web.BeforeRouter, middleware.RedirectInternalService("/v1/chart-editor", chart_editor.NewHttpLibAlliedChartEditor(domain.Operator{})))
76 } 76 }
77 77
78 func AllowCors() func(ctx *context.Context) { 78 func AllowCors() func(ctx *context.Context) {