aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2020-11-04 20:22:13 +0000
committerChristine Dodrill <me@christine.website>2020-11-04 20:22:13 +0000
commit7859a031be03abfad650daca5f5714e8fa04a15f (patch)
tree565815a6c5a76bb341d6c918a0d6860e6c219a01 /cmd
parentfffe0a3eda6fe50ef5d72e9a419b74e2be1f02fe (diff)
downloadx-7859a031be03abfad650daca5f5714e8fa04a15f.tar.xz
x-7859a031be03abfad650daca5f5714e8fa04a15f.zip
update mi api routes
Diffstat (limited to 'cmd')
-rw-r--r--cmd/whoisfront/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/whoisfront/main.go b/cmd/whoisfront/main.go
index 132ecf0..5817800 100644
--- a/cmd/whoisfront/main.go
+++ b/cmd/whoisfront/main.go
@@ -28,7 +28,7 @@ func main() {
}
func miSwitch(to string) error {
- req, err := http.NewRequest(http.MethodGet, "https://mi.within.website/switches/switch", bytes.NewBuffer([]byte(to)))
+ req, err := http.NewRequest(http.MethodGet, "https://mi.within.website/api/switches/switch", bytes.NewBuffer([]byte(to)))
if err != nil {
return err
}
@@ -62,7 +62,7 @@ func handle(w http.ResponseWriter, r *http.Request) {
return
}
- req, err := http.NewRequest(http.MethodGet, "https://mi.within.website/switches/current", nil)
+ req, err := http.NewRequest(http.MethodGet, "https://mi.within.website/api/switches/current/text", nil)
if err != nil {
panic(err)
}