add auto update feature

This commit is contained in:
jayvirsinh_gohil
2019-11-12 18:44:49 +05:30
parent 81f34b8912
commit 1b28b082d2
8 changed files with 254 additions and 2 deletions

View File

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