diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-07-04 16:12:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-04 16:12:02 -0400 |
commit | 8ec8948c84e946fde736add0c4e6dd55f6efd1ab (patch) | |
tree | b6388c965c797d4dfe9c860b93b4249107b9a7b0 /api/api.go | |
parent | 4bd7b68b24137a9f8fe0abc908831cf95bb6c32b (diff) | |
download | chat-8ec8948c84e946fde736add0c4e6dd55f6efd1ab.tar.gz chat-8ec8948c84e946fde736add0c4e6dd55f6efd1ab.tar.bz2 chat-8ec8948c84e946fde736add0c4e6dd55f6efd1ab.zip |
PLT-6554 Add config setting to control enabling API version 3 (#6835)
* Add config setting to control enabling API version 3
* Update help text for APIv3 config setting (#6843)
* Update configuration_settings.jsx
* Update en.json
Diffstat (limited to 'api/api.go')
-rw-r--r-- | api/api.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/api/api.go b/api/api.go index c9c876b02..7e902c159 100644 --- a/api/api.go +++ b/api/api.go @@ -6,6 +6,7 @@ package api import ( "net/http" + l4g "github.com/alecthomas/log4go" "github.com/gorilla/mux" "github.com/mattermost/platform/app" "github.com/mattermost/platform/einterfaces" @@ -115,6 +116,10 @@ func InitApi() { utils.InitHTML() app.InitEmailBatching() + + if *utils.Cfg.ServiceSettings.EnableAPIv3 { + l4g.Info("API version 3 is scheduled for deprecation. Please see https://api.mattermost.com for details.") + } } func HandleEtag(etag string, routeName string, w http.ResponseWriter, r *http.Request) bool { |