2020-12-24 10:00:16 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
)
|
|
|
|
|
2021-08-02 18:43:24 +00:00
|
|
|
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
|
|
|
}
|