add update finish endpoints

This commit is contained in:
jayvirsinh_gohil
2019-11-18 20:55:15 +05:30
parent b6c5105748
commit 36f7da29cf
3 changed files with 27 additions and 6 deletions

View File

@ -127,6 +127,7 @@ Route::group(['middleware' => 'api'], function () {
'middleware' => 'admin'
], function () {
// Auto update routes
//----------------------------------
Route::post('/update', [
@ -134,6 +135,11 @@ Route::group(['middleware' => 'api'], function () {
'uses' => 'UpdateController@update'
]);
Route::post('/finish/update', [
'as' => 'auto.finish.update',
'uses' => 'UpdateController@finishUpdate'
]);
Route::get('/check/update', [
'as' => 'check.update',
'uses' => 'UpdateController@checkLatestVersion'