|
@@ -31,6 +31,8 @@ import (
|
|
"eta/eta_mobile/controllers/smart_report"
|
|
"eta/eta_mobile/controllers/smart_report"
|
|
"eta/eta_mobile/controllers/speech_recognition"
|
|
"eta/eta_mobile/controllers/speech_recognition"
|
|
"eta/eta_mobile/controllers/trade_analysis"
|
|
"eta/eta_mobile/controllers/trade_analysis"
|
|
|
|
+ "eta/eta_mobile/services"
|
|
|
|
+
|
|
"github.com/beego/beego/v2/server/web"
|
|
"github.com/beego/beego/v2/server/web"
|
|
"github.com/beego/beego/v2/server/web/filter/cors"
|
|
"github.com/beego/beego/v2/server/web/filter/cors"
|
|
)
|
|
)
|
|
@@ -44,6 +46,8 @@ func init() {
|
|
ExposeHeaders: []string{"Content-Length", "Access-Control-Allow-Origin", "Access-Control-Allow-Headers", "Content-Type"},
|
|
ExposeHeaders: []string{"Content-Length", "Access-Control-Allow-Origin", "Access-Control-Allow-Headers", "Content-Type"},
|
|
AllowCredentials: true,
|
|
AllowCredentials: true,
|
|
}))
|
|
}))
|
|
|
|
+
|
|
|
|
+ web.InsertFilter("/v1/share/*", web.BeforeRouter, services.FilterShareUrl())
|
|
ns := web.NewNamespace("/v1",
|
|
ns := web.NewNamespace("/v1",
|
|
web.NSNamespace("/ppt",
|
|
web.NSNamespace("/ppt",
|
|
web.NSInclude(
|
|
web.NSInclude(
|