diff options
Diffstat (limited to 'api')
-rw-r--r-- | api/context.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/api/context.go b/api/context.go index fee78dbfd..2842e63a7 100644 --- a/api/context.go +++ b/api/context.go @@ -8,6 +8,7 @@ import ( "net/http" "net/url" "strings" + "sync/atomic" "time" l4g "github.com/alecthomas/log4go" @@ -216,6 +217,10 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { c.CheckTeamId() } + if h.isApi { + atomic.StoreInt32(model.UsedApiV3, 1) + } + if c.Err == nil { h.handleFunc(c, w, r) } |