diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-08-15 16:25:36 -0400 |
---|---|---|
committer | Saturnino Abril <saturnino.abril@gmail.com> | 2017-08-16 04:25:36 +0800 |
commit | 0033e3e37b12cb5d951d21492500d66a6abc472b (patch) | |
tree | cc8e1f306436fa48807810d184c5a8a1962c792a /web | |
parent | 7d3719b5c67327da42822071e001b38f0a3f8db7 (diff) | |
download | chat-0033e3e37b12cb5d951d21492500d66a6abc472b.tar.gz chat-0033e3e37b12cb5d951d21492500d66a6abc472b.tar.bz2 chat-0033e3e37b12cb5d951d21492500d66a6abc472b.zip |
PLT-7408 Move webhook handling into api4 package to fix EnableAPIv3 config setting (#7219)
* Move webhook handling into api4 package to fix EnableAPIv3 config setting
* Fix unit test
Diffstat (limited to 'web')
-rw-r--r-- | web/web_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/web_test.go b/web/web_test.go index c932b25d2..7881b8eed 100644 --- a/web/web_test.go +++ b/web/web_test.go @@ -8,6 +8,7 @@ import ( "time" "github.com/mattermost/platform/api" + "github.com/mattermost/platform/api4" "github.com/mattermost/platform/app" "github.com/mattermost/platform/model" "github.com/mattermost/platform/store" @@ -26,6 +27,7 @@ func Setup() { app.InitStores() api.InitRouter() app.StartServer() + api4.InitApi(false) api.InitApi() InitWeb() URL = "http://localhost" + utils.Cfg.ServiceSettings.ListenAddress |