trans_setlocale().'/admin/block'], function () { Route::resource('block', 'Litecms\Block\Http\Controllers\BlockAdminWebController'); }); // Admin API routes for block Route::group(['prefix' => trans_setlocale().'api/v1/admin/block'], function () { Route::resource('block', 'Litecms\Block\Http\Controllers\BlockAdminApiController'); }); // User web routes for block Route::group(['prefix' => trans_setlocale().'/user/block'], function () { Route::resource('block', 'Litecms\Block\Http\Controllers\BlockUserWebController'); }); // User API routes for block Route::group(['prefix' => trans_setlocale().'api/v1/user/block'], function () { Route::resource('block', 'Litecms\Block\Http\Controllers\BlockUserApiController'); }); // Public web routes for block Route::group(['prefix' => trans_setlocale().'/blocks'], function () { Route::get('/', 'Litecms\Block\Http\Controllers\BlockPublicWebController@index'); Route::get('/{slug?}', 'Litecms\Block\Http\Controllers\BlockPublicWebController@show'); }); // Public API routes for block Route::group(['prefix' => trans_setlocale().'api/v1/blocks'], function () { Route::get('/', 'Litecms\Block\Http\Controllers\BlockPublicApiController@index'); Route::get('/{slug?}', 'Litecms\Block\Http\Controllers\BlockPublicApiController@show'); }); // Admin web routes for category Route::group(['prefix' => trans_setlocale().'/admin/block'], function () { Route::resource('category', 'Litecms\Block\Http\Controllers\CategoryAdminWebController'); }); // Admin API routes for category Route::group(['prefix' => trans_setlocale().'api/v1/admin/block'], function () { Route::resource('category', 'Litecms\Block\Http\Controllers\CategoryAdminApiController'); }); // User web routes for category Route::group(['prefix' => trans_setlocale().'/user/block'], function () { Route::resource('category', 'Litecms\Block\Http\Controllers\CategoryUserWebController'); }); // User API routes for category Route::group(['prefix' => trans_setlocale().'api/v1/user/block'], function () { Route::resource('category', 'Litecms\Block\Http\Controllers\CategoryUserApiController'); }); // Public web routes for category Route::group(['prefix' => trans_setlocale().'/blocks'], function () { Route::get('/', 'Litecms\Block\Http\Controllers\CategoryPublicWebController@index'); Route::get('/{slug?}', 'Litecms\Block\Http\Controllers\CategoryPublicWebController@show'); }); // Public API routes for category Route::group(['prefix' => trans_setlocale().'api/v1/blocks'], function () { Route::get('/', 'Litecms\Block\Http\Controllers\CategoryPublicApiController@index'); Route::get('/{slug?}', 'Litecms\Block\Http\Controllers\CategoryPublicApiController@show'); });