summaryrefslogtreecommitdiff
path: root/pkg/backend/webapi.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-03-17 17:15:19 +0100
committerkali kaneko (leap communications) <kali@leap.se>2021-05-04 14:58:39 +0200
commit76cacf3d60e3dbfcb6fcb82558d9d79f6d068fb8 (patch)
tree8a9a06e9748836d47a67465be470d70e1a808060 /pkg/backend/webapi.go
parent8d616ba53416e5ca6205e9e29a2b3b0fc625f2d1 (diff)
wip: select by city from the gui
Diffstat (limited to 'pkg/backend/webapi.go')
-rw-r--r--pkg/backend/webapi.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/backend/webapi.go b/pkg/backend/webapi.go
index 11abc24..a19d933 100644
--- a/pkg/backend/webapi.go
+++ b/pkg/backend/webapi.go
@@ -64,9 +64,9 @@ func webGatewaySet(w http.ResponseWriter, r *http.Request) {
}
func webGatewayList(w http.ResponseWriter, r *http.Request) {
- gws, err := ctx.bm.ListGateways(ctx.Provider)
+ gws, err := ctx.bm.ListGatewaysByCity(ctx.Provider)
if err != nil {
- fmt.Fprintf(w, "ListGateways() err: %v", err)
+ fmt.Fprintf(w, "ListGatewaysByCity() err: %v", err)
}
gwJson, _ := json.Marshal(gws)
fmt.Fprintf(w, string(gwJson))