mirror of
https://github.com/jlelse/GoBlog
synced 2024-06-02 14:54:27 +00:00
10 lines
203 B
Go
10 lines
203 B
Go
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)
|
|
}
|