implement GET /commands (#5865)

This commit is contained in:
Carlos Tadeu Panato Junior
2017-04-03 14:12:50 +02:00
committed by Joram Wilander
parent 67a8770118
commit 88b8df3146
5 changed files with 168 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ func InitCommand() {
}
func listCommands(c *Context, w http.ResponseWriter, r *http.Request) {
commands, err := app.ListCommands(c.TeamId, c.T)
commands, err := app.ListAutocompleteCommands(c.TeamId, c.T)
if err != nil {
c.Err = err
return