added new API endpoints to show/hide typing indicators

see #166
This commit is contained in:
Bernhard B
2021-10-25 19:44:47 +02:00
parent d1190f8299
commit 80805c069d
6 changed files with 435 additions and 0 deletions

View File

@@ -190,6 +190,12 @@ func main() {
identities.GET(":number", api.ListIdentities)
identities.PUT(":number/trust/:numbertotrust", api.TrustIdentity)
}
typingIndicator := v1.Group("typing-indicator")
{
typingIndicator.PUT(":number", api.SendStartTyping)
typingIndicator.DELETE(":number", api.SendStopTyping)
}
}
v2 := router.Group("/v2")