public function shorten()
 {
     header('Content-type: text/plain');
     $long_url = $_POST['url'];
     $link = Link::checkOrShorten($long_url);
     return $link->short_url;
 }