added search endpoint

* check whether one or more phone numbers are registered with
  the signal service.

see #50
This commit is contained in:
Bernhard B
2022-01-02 14:52:45 +01:00
parent 18dcc49ff4
commit 43747af9d4
6 changed files with 270 additions and 0 deletions

View File

@@ -49,6 +49,9 @@ import (
// @tag.name Reactions
// @tag.description React to messages.
// @tag.name Search
// @tag.description Search the Signal Service.
// @host 127.0.0.1:8080
// @BasePath /
func main() {
@@ -204,6 +207,11 @@ func main() {
reactions.POST(":number", api.SendReaction)
reactions.DELETE(":number", api.RemoveReaction)
}
search := v1.Group("/search")
{
search.GET("", api.SearchForNumbers)
}
}
v2 := router.Group("/v2")