added endpoints to list + trust identities

see #66
This commit is contained in:
Bernhard B
2021-01-18 20:21:17 +01:00
parent 3f08a07a30
commit 5d89b3fa51
5 changed files with 430 additions and 0 deletions

View File

@@ -37,6 +37,9 @@ import (
// @tag.name Profiles
// @tag.description Update Profile.
// @tag.name Identities
// @tag.description List and Trust Identities.
// @host 127.0.0.1:8080
// @BasePath /
func main() {
@@ -106,6 +109,12 @@ func main() {
{
profiles.PUT(":number", api.UpdateProfile)
}
identities := v1.Group("identities")
{
identities.GET(":number", api.ListIdentities)
identities.PUT(":number/trust/:numbertotrust", api.TrustIdentity)
}
}
v2 := router.Group("/v2")