Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
yanggyein
/
yanggyein
/
yanggyein
/
routes
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/yanggyein/yanggyein/yanggyein/routes/web.php
<?php use App\Http\Controllers\FarmIotController; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | contains the "web" middleware group. Now create something great! | */ // Route::get('/', function () { // return view('items'); // }); // Auth::routes(); // Home Route::get('/', 'HomeController@index')->name('home'); Route::group(['middleware' => 'web'], function () { Auth::routes(); /* 농가 리스트 */ Route::get('/farms/all/all', 'FarmController@index'); /* 농가 리스트 */ Route::get('/farms/all/list', 'FarmController@farmListInfomation'); Route::post('/farms/all/list', 'ItemController@pushAlarm')->name('pushAlarm'); /* 농가 리스트 엑셀 */ Route::get('/farms/export/{company}', 'FarmController@export')->name('excel'); Route::get('/farms/export/wowza/{company}', 'FarmController@exportWowza')->name('wowza'); /* 농가 세팅 */ Route::get('/farms/check/{farm}', 'FarmController@checkFarm'); /*체리부로 */ Route::get('/farms/cr/cr', 'FarmController@indexCompany'); Route::get('/farms/cr/cr/{farm}', 'FarmController@showCompany'); Route::get('/farms/cr/hw', 'FarmController@indexCompany'); Route::get('/farms/cr/hw/{farm}', 'FarmController@showCompany'); Route::get('/farms/cr/cfn', 'FarmController@indexCompany'); Route::get('/farms/cr/cfn/{farm}', 'FarmController@showCompany'); Route::get('/farms/cr/gg', 'FarmController@indexCompany'); Route::get('/farms/cr/gg/{farm}', 'FarmController@showCompany'); Route::get('/farms/cr/hn', 'FarmController@indexCompany'); Route::get('/farms/cr/hn/{farm}', 'FarmController@showCompany'); /* 청솔 */ Route::get('/farms/cs/cs', 'FarmController@indexCompany'); Route::get('/farms/cs/cs/{farm}', 'FarmController@showCompany'); /* 정우식품 */ Route::get('/farms/jw/jw', 'FarmController@indexCompany'); Route::get('/farms/jw/jw/{farm}', 'FarmController@showCompany'); /* 정우식품 */ Route::get('/farms/etc/etc', 'FarmController@indexCompany'); Route::get('/farms/etc/etc/{farm}', 'FarmController@showCompany'); /* 농가생성 */ Route::get('/farms/create', 'FarmController@create'); Route::post('/farms', 'FarmController@store'); /* 농가상세정보 */ Route::get('/farm/info/{farm}', 'FarmController@showFarmInfo')->name('farm.info'); Route::get('/farm/nvr/{farm}', 'FarmController@showFarmNvr')->name('farm.nvr'); Route::get('/farm/as/{farm}', 'FarmController@showFarmAs')->name('farm.as'); Route::get('/farms/{farm}', 'FarmController@show'); /* 농가 수정 */ Route::get('/farms/{farm}/edit', 'FarmController@edit'); Route::patch('/farms/{farm}', 'FarmController@update'); /* 농가삭제 */ Route::get('/farms/destroy/{id}', 'FarmController@destroy'); /* 메뉴관련 */ Route::get('/menus', 'MenuController@index'); Route::post('/menus', 'MenuController@store'); /* NVR */ Route::get('/nvrs/create', 'NvrController@create'); Route::get('/nvrs/create/{farm_id}', 'NvrController@create')->name('nvrs.create'); Route::post('/nvrs', 'NvrController@store'); Route::get('/nvrs/edit/{id}', 'NvrController@edit')->name('nvrs.edit'); Route::patch('/nvrs/{nvr}', 'NvrController@update'); Route::get('/nvrs/delete/{id}', 'NvrController@destroy')->name('nvrs.destroy'); Route::get('nvrs/show/{nvr}', 'NvrController@show'); /* LRP */ Route::get('/lprs/create', 'LprController@create'); Route::get('/lprs/create/{farm_id}', 'LprController@create')->name('lprs.create'); Route::post('/lprs', 'LprController@store'); Route::get('/lprs/edit/{id}', 'LprController@edit')->name('lprs.edit'); Route::patch('/lprs/{lpr}', 'LprController@update'); Route::get('/lprs/delete/{id}', 'LprController@destroy')->name('lprs.destroy'); /* Camera */ Route::get('/cameras/create', 'CameraController@create'); Route::get('/cameras/create/{farm_id}', 'CameraController@create')->name('cameras.create'); Route::post('/cameras', 'CameraController@store'); Route::get('/cameras/edit/{id}', 'CameraController@edit')->name('cameras.edit'); Route::patch('/cameras/{camera}', 'CameraController@update'); Route::get('/cameras/delete/{id}', 'CameraController@destroy')->name('cameras.destroy'); /* After Service */ Route::post('/as/store', 'AfterServiceController@store'); Route::post('/as/update', 'AfterServiceController@update'); Route::get('/as/delete/{id}', 'AfterServiceController@destroy')->name('as.destroy'); /* Farm Info */ Route::post('/farminfo/store', 'FarmInfoController@store'); Route::post('/farminfo/update', 'FarmInfoController@update'); Route::get('/farminfo/delete/{id}', 'FarmInfoController@destroy')->name('farminfo.destroy'); /* File 관리 */ Route::get('/files/nvr', 'FileController@index'); Route::get('/files/lpr', 'FileController@index'); Route::get('/files/camera', 'FileController@index'); Route::get('/files/router', 'FileController@index'); Route::get('/files/util', 'FileController@index'); Route::get('/files/share', 'FileController@index'); Route::post('/files/nvr', 'FileController@store'); Route::post('/files/lpr', 'FileController@store'); Route::post('/files/camera', 'FileController@store'); Route::post('/files/router', 'FileController@store'); Route::post('/files/util', 'FileController@store'); Route::post('/files/share', 'FileController@store'); Route::get('/files/download/{id}', 'FileController@download')->name('file.download'); Route::get('/files/update/{id}', 'FileController@update')->name('file.update'); Route::get('/files/destroy/{id}', 'FileController@destroy')->name('file.destroy'); /* Owner 파일관리 */ Route::get('/owner/files', 'OwnerController@index'); Route::get('/owner/files/one', 'OwnerController@store_depth_one'); Route::get('/owner/files/two', 'OwnerController@store_depth_two'); Route::post('/owner/files/store', 'OwnerController@store'); Route::post('/owner/files/show', 'OwnerController@show'); Route::get('/owner/files/one/delete/{id}', 'OwnerController@delete_depth_one'); Route::get('/owner/files/two/delete/{id}', 'OwnerController@delete_depth_two'); Route::get('/owner/download/{id}', 'OwnerController@download'); Route::get('/owner/files/update/{id}', 'OwnerController@update'); Route::get('/owner/files/one/update/{id}', 'OwnerController@update_depth_one'); Route::get('/owner/files/two/update/{id}', 'OwnerController@update_depth_two'); Route::get('/owner/files/destroy/{id}', 'OwnerController@destroy'); /* Memo */ Route::get('/memos/store', 'MemoController@store'); Route::get('/memos/destroy/{id}', 'MemoController@destroy'); /* LTMS FARM */ Route::get('/ltms/insert/farminfo/{farm}', 'FarmController@insertFarmInfo'); Route::get('/ltms/connect/farm/{farm}', 'FarmController@connectLtmsFarm'); Route::get('/ltms/connect/nvr/{farm}', 'FarmController@matchingLtmsNvr'); /* LTMS NVR */ Route::get('/ltms/nvr', 'LtmsController@index'); /* IOT 정보 */ Route::get('/iotsensor/create/{farm_id}', 'IotSensorController@create')->name('iotsensor.create'); Route::post('/iotsensor', 'IotSensorController@store'); Route::post('/iotdata/update', 'IotSensorController@ajaxReload'); Route::post('/iotdata/search', 'IotSensorController@ajaxSearch'); Route::get('/iotsensor/edit/{sensor}', 'IotSensorController@edit')->name('iotsensor.edit'); Route::patch('/iotsensor/update/{sensor}', 'IotSensorController@update'); Route::get('/iotsensor/destory/{sensor}', 'IotSensorController@destroy')->name('iotsensor.destroy'); Route::get('/farm/iot/{farm}', 'IotSensorController@show')->name('farm.iot'); /* 패스워드 변경 */ Route::get('/auth/reset', 'AuthorityController@reset')->name('pwChange'); Route::patch('/auth/password/change/{user}', 'ChangePassword@update'); Route::get('/test/test', 'TestController@test'); /* 관제 센터 */ Route::get('/center/nvr', 'CenterController@showNvr'); Route::post('/center/rotation', 'CenterController@rotationPage'); /* 재고 관리 */ Route::get('/item/main', 'ItemController@showMain'); Route::get('/item/vlc', 'ItemController@show'); /* 협력업체 */ Route::get('/farmlist/all', 'CooperationController@farmList'); Route::post('/farmlist/all', 'CooperationController@farmCheck'); Route::post('/farmlist/all/chcknote', 'CooperationController@farmCheckNote'); /* 설치팀 */ Route::get('/install/list', 'InstallationTeamController@list'); Route::get('/install/show/{farm}', 'InstallationTeamController@show'); Route::get('/install/search/iot', 'InstallationTeamController@searchIot'); Route::get('/install/add/iot', 'InstallationTeamController@addIot'); // ajax 요청 Route::post('/install/check', 'InstallationTeamController@installCheck'); Route::post('/install/checknote', 'InstallationTeamController@installCheckNote'); Route::post('/install/showAjax', 'InstallationTeamController@showAjax'); Route::post('/install/searchAjax', 'InstallationTeamController@searchIotAjax'); /* test */ Route::get('/test/webpage', 'TestController@test');// Auth 그룹 });