longURL() public method

Get the long URL for a given short URL
public longURL ( string $shortURL = '' ) : string
$shortURL string
return string
Beispiel #1
0
 /**
  * Handle short URLs
  *
  * @param string $uniqueID
  * @route b/(.*)
  */
 public function shortURL(string $uniqueID = '')
 {
     if (empty($uniqueID)) {
         \Airship\redirect($this->airship_cabin_prefix . '/blog');
     }
     $long = $this->blog->longURL($uniqueID);
     \Airship\redirect($this->airship_cabin_prefix . '/blog' . $long);
 }