infojune/routes/web.php

31 lines
952 B
PHP

<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\ContentController;
/*
|--------------------------------------------------------------------------
| 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('/don', function () {
return view('don');
});
//Route::get('/content', [ContentController::class, 'index']);
Route::get('/content/{path}', [ContentController::class, 'show']);
Route::get('/', [ContentController::class, 'home']);
Route::get('/category/{path}', [ContentController::class, 'index']);
Route::get('/search', [ContentController::class, 'search'])->name('content.search');
Route::group(['prefix' => 'admin'], function () {
Voyager::routes();
});