mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
easy to remember download URLs
This commit is contained in:
parent
7202690409
commit
e5a6bff197
2 changed files with 5 additions and 1 deletions
|
@ -83,6 +83,10 @@ class Controller
|
|||
case '/lbry-linux-latest.deb':
|
||||
case '/dl/lbry_setup.sh':
|
||||
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':
|
||||
return static::redirect('/what', 301);
|
||||
case '/why':
|
||||
|
|
|
@ -187,7 +187,7 @@ class DownloadActions extends Actions
|
|||
return null;
|
||||
}
|
||||
|
||||
protected static function getDownloadUrl($os, $useCache = true)
|
||||
public static function getDownloadUrl($os, $useCache = true)
|
||||
{
|
||||
if (!in_array($os, array_keys(static::getOses())))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue