diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-02-20 15:35:02 -0500 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2017-02-20 15:35:02 -0500 |
commit | a5f8bdd3a073fa30bd9edd835bd2355c398efc8d (patch) | |
tree | 1805d203a14a8e1272b925178ae60522fc1eb7ec /api4/team.go | |
parent | 5272c0c17062d2b9ce14e295174bba1b3b35e514 (diff) | |
download | chat-a5f8bdd3a073fa30bd9edd835bd2355c398efc8d.tar.gz chat-a5f8bdd3a073fa30bd9edd835bd2355c398efc8d.tar.bz2 chat-a5f8bdd3a073fa30bd9edd835bd2355c398efc8d.zip |
Various APIv4 fixes (#5474)
Diffstat (limited to 'api4/team.go')
-rw-r--r-- | api4/team.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api4/team.go b/api4/team.go index 2e3b6b982..206ea7b0e 100644 --- a/api4/team.go +++ b/api4/team.go @@ -19,7 +19,7 @@ func InitTeam() { BaseRoutes.TeamsForUser.Handle("", ApiSessionRequired(getTeamsForUser)).Methods("GET") BaseRoutes.Team.Handle("", ApiSessionRequired(getTeam)).Methods("GET") - BaseRoutes.Team.Handle("/stats", ApiHandler(getTeamStats)).Methods("GET") + BaseRoutes.Team.Handle("/stats", ApiSessionRequired(getTeamStats)).Methods("GET") BaseRoutes.TeamByName.Handle("", ApiSessionRequired(getTeamByName)).Methods("GET") BaseRoutes.TeamMember.Handle("", ApiSessionRequired(getTeamMember)).Methods("GET") |