1
mirror of https://github.com/jlelse/GoBlog synced 2024-06-15 09:47:09 +00:00
GoBlog/shortDomain.go

10 lines
209 B
Go

package main
import (
"net/http"
)
func (a *goBlog) redirectShortDomain(rw http.ResponseWriter, r *http.Request) {
http.Redirect(rw, r, a.getFullAddress(r.URL.RequestURI()), http.StatusMovedPermanently)
}