]> Sergey Matveev's repositories - godlighty.git/blob - rc/cryptoanarchy.ru.go
Verbose redirects, tiny DRY
[godlighty.git] / rc / cryptoanarchy.ru.go
1 package rc
2
3 import (
4         "net/http"
5
6         "go.stargrave.org/godlighty"
7 )
8
9 func init() {
10         host := "www.cryptoanarchy.ru"
11         godlighty.Hosts[host] = &godlighty.HostCfg{
12                 Hooks: []godlighty.Hook{
13                         func(w http.ResponseWriter, r *http.Request) bool {
14                                 redirect(
15                                         host, w, r,
16                                         "//www.cypherpunks.ru/Manifesto-cryptoanarchist.html",
17                                         http.StatusMovedPermanently,
18                                 )
19                                 return true
20                         },
21                 },
22         }
23 }