mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 06:14:22 +01:00
relay pages at /r/... and nip05 pages at /p/...
This commit is contained in:
@@ -13,7 +13,7 @@ import (
|
||||
|
||||
func renderRelayPage(w http.ResponseWriter, r *http.Request) {
|
||||
code := r.URL.Path[1:]
|
||||
hostname := code
|
||||
hostname := code[2:]
|
||||
typ := "relay"
|
||||
if strings.HasSuffix(hostname, ".xml") {
|
||||
hostname = code[:len(hostname)-4]
|
||||
|
||||
Reference in New Issue
Block a user