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
Этот коммит содержится в:
Joram Wilander
2017-08-15 16:25:36 -04:00
коммит произвёл Saturnino Abril
родитель 7d3719b5c6
Коммит 0033e3e37b
3 изменённых файлов: 53 добавлений и 52 удалений

Просмотреть файл

@@ -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