trans_setlocale().'/admin/update'], function () { Route::resource('updates', 'Litecms\Update\Http\Controllers\UpdatesAdminController'); }); // Admin API routes for updates Route::group(['prefix' => trans_setlocale().'api/v1/admin/update'], function () { Route::resource('updates', 'Litecms\Update\Http\Controllers\UpdatesAdminApiController'); }); // User web routes for updates Route::group(['prefix' => trans_setlocale().'/user/updates'], function () { Route::resource('/', 'Litecms\Update\Http\Controllers\UpdatesUserController'); }); // User API routes for updates Route::group(['prefix' => trans_setlocale().'api/v1/user/updates'], function () { Route::resource('/', 'Litecms\Update\Http\Controllers\UpdatesUserApiController'); }); // Public web routes for updates Route::group(['prefix' => trans_setlocale().'/updates'], function () { Route::get('/', 'Litecms\Update\Http\Controllers\UpdatesController@index'); Route::get('/{slug?}', 'Litecms\Update\Http\Controllers\UpdatesController@show'); }); // Public API routes for updates Route::group(['prefix' => trans_setlocale().'api/v1/updates'], function () { Route::get('/', 'Litecms\Update\Http\Controllers\UpdatesApiController@index'); Route::get('/{slug?}', 'Litecms\Update\Http\Controllers\UpdatesApiController@show'); });