summaryrefslogtreecommitdiff
path: root/internal/server/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/server/server.go')
-rw-r--r--internal/server/server.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/internal/server/server.go b/internal/server/server.go
index 00324a2..c68916e 100644
--- a/internal/server/server.go
+++ b/internal/server/server.go
@@ -33,12 +33,14 @@ type EndpointList struct {
Token string `json:"token_endpoint"`
}
+type EndpointsVersions struct {
+ V2 EndpointList `json:"http://eduvpn.org/api#2"`
+ V3 EndpointList `json:"http://eduvpn.org/api#3"`
+}
+
// Endpoints defines the json format for /.well-known/vpn-user-portal".
type Endpoints struct {
- API struct {
- V2 EndpointList `json:"http://eduvpn.org/api#2"`
- V3 EndpointList `json:"http://eduvpn.org/api#3"`
- } `json:"api"`
+ API EndpointsVersions `json:"api"`
V string `json:"v"`
}