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