upd
This commit is contained in:
parent
b30877fc17
commit
b46f99ed60
3
main.go
3
main.go
@ -89,6 +89,9 @@ func wsHandler(w http.ResponseWriter, r *http.Request) {
|
||||
} else if buffer == "github" {
|
||||
conn.WriteJSON(map[string]string{"action": "redirect", "url": "https://codeberg.org/"})
|
||||
buffer = ""
|
||||
} else if buffer == "status" {
|
||||
conn.WriteJSON(map[string]string{"action": "redirect", "url": "/status"})
|
||||
buffer = ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user