easy to remember download URLs

This commit is contained in:
Jeremy Kauffman 2016-08-02 22:21:19 -04:00
parent 7202690409
commit e5a6bff197
2 changed files with 5 additions and 1 deletions

View file

@ -83,6 +83,10 @@ class Controller
case '/lbry-linux-latest.deb': case '/lbry-linux-latest.deb':
case '/dl/lbry_setup.sh': case '/dl/lbry_setup.sh':
return static::redirect('/get', 301); return static::redirect('/get', 301);
case '/get/lbry.dmg':
return static::redirect(DownloadActions::getDownloadUrl(DownloadActions::OS_OSX));
case '/get/lbry.deb':
return static::redirect(DownloadActions::getDownloadUrl(DownloadActions::OS_LINUX));
case '/art': case '/art':
return static::redirect('/what', 301); return static::redirect('/what', 301);
case '/why': case '/why':

View file

@ -187,7 +187,7 @@ class DownloadActions extends Actions
return null; return null;
} }
protected static function getDownloadUrl($os, $useCache = true) public static function getDownloadUrl($os, $useCache = true)
{ {
if (!in_array($os, array_keys(static::getOses()))) if (!in_array($os, array_keys(static::getOses())))
{ {