GoBlog/shortDomain.go

10 lines
209 B
Go
Raw Permalink 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) {
2022-11-27 14:06:43 +00:00
http.Redirect(rw, r, a.getFullAddress(r.URL.RequestURI()), http.StatusMovedPermanently)
2020-12-24 10:00:16 +00:00
}