feat(mng): 고객센터 게시판 코드 리다이렉트 추가
- /customer-center/{code} → /boards/{id}/posts 리다이렉트
- 시스템 게시판(tenant_id=null) + 활성화된 게시판만 대상
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -108,6 +108,16 @@
|
||||
// 고객센터 (활성화된 시스템 게시판 목록)
|
||||
Route::get('/customer-center', [CustomerCenterController::class, 'index'])->name('customer-center.index');
|
||||
|
||||
// 고객센터 게시판 리다이렉트 (board_code → boards/{id}/posts)
|
||||
Route::get('/customer-center/{code}', function (string $code) {
|
||||
$board = \App\Models\Boards\Board::where('board_code', $code)
|
||||
->whereNull('tenant_id')
|
||||
->where('is_active', true)
|
||||
->firstOrFail();
|
||||
|
||||
return redirect()->route('boards.posts.index', $board->id);
|
||||
})->name('customer-center.board');
|
||||
|
||||
// 시스템 게시판 관리 (Blade 화면만)
|
||||
Route::prefix('boards')->name('boards.')->group(function () {
|
||||
Route::get('/', [BoardController::class, 'index'])->name('index');
|
||||
|
||||
Reference in New Issue
Block a user