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.

56 lines
2.1 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!
|
*/
// 파일 다운로드
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');
2 years ago
Route::domain(config('app.domain'))->namespace('Front')->group(function () {
2 years ago
// 메인
Route::get('/', 'IndexController@index')->name('index');
// 메인, 갤러리
Route::get('/main/gallery', 'IndexController@galleryList')->name('main.gallery');
// 메인, 갤러리 상세
Route::get('/main/gallery/view', 'IndexController@galleryView')->name('main.gallery.view');
2 years ago
// 일반페이지
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');
});
Route::get('/test', function () {
return view('test');
});