mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 06:14:22 +01:00
17 lines
305 B
Go
17 lines
305 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
func renderRobots(w http.ResponseWriter, r *http.Request) {
|
|
w.Header().Set("Cache-Control", "max-age=3600")
|
|
fmt.Fprintf(w, `User-agent: *
|
|
Allow: /
|
|
|
|
Sitemap: https://{{%s}}/npubs-archive.xml
|
|
Sitemap: https://{{%s}}/relays-archive.xml
|
|
`, s.Domain, s.Domain)
|
|
}
|