From 32bf4cb0c949f44343849607d0439a61d1e6ea49 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Tue, 23 May 2017 22:56:16 +0200 Subject: Add API KEY support to allow CORS requests. Signed-off-by: Sebastien Douheret --- lib/agent/agent.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/agent/agent.go') diff --git a/lib/agent/agent.go b/lib/agent/agent.go index 80c97f7..74872f7 100644 --- a/lib/agent/agent.go +++ b/lib/agent/agent.go @@ -11,7 +11,7 @@ import ( "github.com/codegangsta/cli" "github.com/iotbzh/xds-agent/lib/syncthing" "github.com/iotbzh/xds-agent/lib/xdsconfig" - "github.com/iotbzh/xds-agent/lib/xdsserver" + "github.com/iotbzh/xds-agent/lib/webserver" ) // Context holds the Agent context structure @@ -22,7 +22,7 @@ type Context struct { SThg *st.SyncThing SThgCmd *exec.Cmd SThgInotCmd *exec.Cmd - WWWServer *xdsserver.ServerService + WWWServer *webserver.ServerService Exit chan os.Signal } -- cgit 1.2.3-korg