|
|
@ -57,7 +57,7 @@ func shortenJSON(w http.ResponseWriter, r *http.Request){
|
|
|
|
err = short.Short(queryu, &token)
|
|
|
|
err = short.Short(queryu, &token)
|
|
|
|
check(err)
|
|
|
|
check(err)
|
|
|
|
|
|
|
|
|
|
|
|
respond := response{3
|
|
|
|
respond := response{
|
|
|
|
Action: "shorten",
|
|
|
|
Action: "shorten",
|
|
|
|
Result: r.Host + "/" + token,
|
|
|
|
Result: r.Host + "/" + token,
|
|
|
|
}
|
|
|
|
}
|
|
|
|