Commented the code

This commit is contained in:
Henry Whitaker
2020-06-19 14:02:38 +01:00
parent be37463604
commit 91f457c7d1
15 changed files with 258 additions and 9 deletions

View File

@@ -8,6 +8,12 @@ use Illuminate\Http\Request;
class UpdateController extends Controller
{
/**
* Check for new update
*
* @return Response
*/
public function checkForUpdate()
{
return response()->json([
@@ -16,6 +22,11 @@ class UpdateController extends Controller
], 200);
}
/**
* Download new update
*
* @return Response
*/
public function downloadUpdate()
{
$dl = Updater::downloadLatest();
@@ -33,6 +44,11 @@ class UpdateController extends Controller
}
}
/**
* Trigger update extraction
*
* @return Response
*/
public function extractUpdate()
{
$ex = Updater::extractFiles();
@@ -50,6 +66,11 @@ class UpdateController extends Controller
}
}
/**
* Trigger update file move
*
* @return Response
*/
public function moveUpdate()
{
$cp = Updater::updateFiles();
@@ -60,6 +81,11 @@ class UpdateController extends Controller
], 200);
}
/**
* Get local changelog
*
* @return Response
*/
public function changelog()
{
$url = base_path() . '/changelog.json';