1
mirror of https://github.com/jlelse/GoBlog synced 2024-05-29 05:24:27 +00:00
GoBlog/shortDomain.go

10 lines
203 B
Go
Raw Normal View History

2020-12-24 10:00:16 +00:00
package main
import (
"net/http"
)
func (a *goBlog) redirectShortDomain(rw http.ResponseWriter, r *http.Request) {
http.Redirect(rw, r, a.getFullAddress(r.RequestURI), http.StatusMovedPermanently)
2020-12-24 10:00:16 +00:00
}