diff --git a/api/router_static.go b/api/router_static.go index a15c980..b97a6e9 100644 --- a/api/router_static.go +++ b/api/router_static.go @@ -43,7 +43,7 @@ func initStaticRouter(router *mux.Router) error { } if dir == "js" { - asset[path] = "window.API='" + os.Getenv("ORIGIN") + "/api';" + string(contents) + asset[path] = "window.origin='" + os.Getenv("ORIGIN") + "';" + string(contents) } else { asset[path] = string(contents) }