fix multi-peer generation, fix prefix handling (#491)

This commit is contained in:
Christoph Haas
2025-08-09 15:55:29 +02:00
parent 3f76aa416f
commit c20f17cddf
7 changed files with 41 additions and 45 deletions

View File

@@ -1969,7 +1969,7 @@
"type": "string"
}
},
"Suffix": {
"Prefix": {
"type": "string"
}
}

View File

@@ -206,7 +206,7 @@ definitions:
items:
type: string
type: array
Suffix:
Prefix:
type: string
type: object
model.Peer:

View File

@@ -139,7 +139,8 @@ func (s *Server) setupRoutes(endpoints ...ApiEndpointSetupFunc) {
s.versions[version].HandleFunc("GET /swagger/index.html", s.rapiDocHandler(version)) // Deprecated: old link
s.versions[version].HandleFunc("GET /doc.html", s.rapiDocHandler(version))
groupSetupFn(s.versions[version])
versionGroup := s.versions[version].Group()
groupSetupFn(versionGroup)
}
}
}