You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

127 lines
5.6 KiB
PHTML

2 years ago
<?php
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Auth;
/*
|--------------------------------------------------------------------------
| 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!
|
*/
2 years ago
Route::domain(config('app.domain'))->group(function () {
// 파일 다운로드
Route::get('/file/{uid}', 'AssetController@download')->name('file');
Route::get('/download/{uid}', 'AssetController@download')->name('download');
// 이미지
Route::get('/image/{uid}', 'AssetController@download')->name('image');
// 파일 업로드
Route::post('/file/upload', 'AssetController@upload')->name('file.upload');
// 이미지 썸네일
Route::get('/image/{size}/{uid}', 'AssetController@downloadImage')->name('image.thumbnail');
// 이미지 썸네일(비율)
Route::get('/image/rate/{rate}/{uid}', 'AssetController@downloadImageRate')->name('image.thumbnail.rate');
});
Route::domain(config('app.domain'))->namespace('Front')->group(function () {
Route::get('/', 'IndexController@index')->name('index');
2 years ago
// 메인
Route::get('/', 'IndexController@index')->name('index');
// 일반페이지
Route::get('/pages/{code}', 'PagesController@index')->name('pages');
// 게시판, 게시물 목록
Route::get('/board/{code}', 'BoardController@index')->name('board.list');
// 게시판, 게시물 등록
Route::get('/board/{code}/create', 'BoardController@create')->name('board.create');
// 게시판, 게시물 상세
Route::get('/board/{code}/{uid}', 'BoardController@view')->name('board.view');
// 게시판, 게시물 저장
Route::post('/board/store', 'BoardController@store')->name('board.store');
// 제휴업체, 목록
Route::get('/partner', 'PartnerController@index')->name('partner');
});
2 years ago
/*
$prefix = config('admin.prefix') .'.';
// 관리자만 접근 가능
Route::domain(config('app.domain'))->prefix('cms')->as('adm.')->group(function () {
Route::get('login', 'Auth\LoginController@showLoginForm')->name('login');
Route::post('login', 'Auth\LoginController@login')->name('login.check');
Route::get('logout', 'Auth\LoginController@logout')->name('logout');
});
// 관리자만 접근 가능
Route::domain(config('app.domain'))->middleware(['auth.admin', 'admin'])->namespace('Admin')->prefix('cms')->as('adm.')->group(function () {
Route::get('/', 'IndexController@index')->name('index');
// 회원
Route::get('/user', 'UserController@index')->name('user.list');
// 회원 등록
Route::get('/user/create', 'UserController@create')->name('user.create');
// 회원 수정
Route::get('/user/modify/{uid}', 'UserController@create')->name('user.update');
// 회원 비밀번호 변경
Route::post('/user/change/password', 'UserController@passwordChange')->name('user.change.password');
// 회원 저장
Route::post('/user/store', 'UserController@store')->name('user.store');
// 회원 탈퇴
Route::post('/user/signout', 'UserController@signout')->name('user.signout');
// 회원 복구
Route::post('/user/restore', 'UserController@restore')->name('user.restore');
// 게시판, 게시물 목록
Route::get('/board/{code}', 'BoardController@index')->name('board.list');
// 게시판, 게시물 상세
Route::get('/board/{code}/view/{uid}', 'BoardController@view')->name('board.view');
// 게시판, 게시물 등록
Route::get('/board/{code}/create', 'BoardController@create')->name('board.create');
// 게시판, 게시물 수정
Route::get('/board/{code}/modify/{uid}', 'BoardController@create')->name('board.modify');
// 게시판, 게시물 저장
Route::post('/board/store', 'BoardController@store')->name('board.store');
// 게시판, 에디터 이미지 업로드
Route::post('/board/image/upload', 'BoardController@imageUpload')->name('board.image.upload');
// 게시판, 댓글 저장
Route::post('/board/comment/store', 'BoardController@commentStore')->name('board.comment.store');
// 게시판, 댓글 삭제
Route::post('/board/comment/delete', 'BoardController@commentDelete')->name('board.comment.delete');
// 게시판, 첨부 이미지 삭제
Route::post('/board/asset/delete', 'BoardController@assetDelete')->name('board.asset.delete');
// 게시판, 게시물 삭제
Route::post('/board/delete', 'BoardController@delete')->name('board.delete');
// 제휴업체, 목록
Route::get('/partner', 'PartnerController@index')->name('partner.list');
// 제휴업체, 등록
Route::get('/partner/create', 'PartnerController@create')->name('partner.create');
// 제휴업체, 수정
Route::get('/partner/modify/{uid}', 'PartnerController@create')->name('partner.modify');
// 제휴업체, 저장
Route::post('/partner/store', 'PartnerController@store')->name('partner.store');
// 제휴업체, 삭제
Route::post('/partner/delete', 'PartnerController@delete')->name('partner.delete');
// 설정, 목록
Route::get('/setting', 'SettingController@index')->name('setting.list');
// 설정, 등록/수정
Route::get('/setting/create', 'SettingController@create')->name('setting.create');
// 설정, 저장
Route::post('/setting/store', 'SettingController@store')->name('setting.store');
// 설정, 삭제
Route::post('/setting/delete', 'SettingController@delete')->name('setting.delete');
});
*/
2 years ago
Route::get('/test', function () {
return view('test');
});