Merge branch 'auto-update' into 'master'

Auto update

See merge request mohit.panjvani/crater-web!23
This commit is contained in:
Mohit Panjwani
2019-11-14 15:39:05 +00:00
33 changed files with 369 additions and 69 deletions

View File

@ -106,6 +106,8 @@ Route::group(['middleware' => 'redirect-if-installed'], function () {
'uses' => 'OnboardingController@companySettings'
]);
});
// App version
// ----------------------------------
@ -120,6 +122,18 @@ Route::group(['middleware' => 'api'], function () {
'middleware' => 'admin'
], function () {
// Auto update routes
//----------------------------------
Route::post('/update', [
'as' => 'auto.update',
'uses' => 'UpdateController@update'
]);
Route::get('/check/update', [
'as' => 'check.update',
'uses' => 'UpdateController@checkLatestVersion'
]);
Route::get('/bootstrap', [
'as' => 'bootstrap',
'uses' => 'UsersController@getBootstrap'