2020-10-10 12:12:44 +02:00
|
|
|
<?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!
|
|
|
|
|
|
|
|
|
*/
|
2020-10-15 12:20:44 +02:00
|
|
|
Route::get('/don', function () {
|
|
|
|
return view('don');
|
2020-10-10 12:12:44 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
//Route::get('/content', [ContentController::class, 'index']);
|
|
|
|
Route::get('/content/{path}', [ContentController::class, 'show']);
|
2020-10-15 12:20:44 +02:00
|
|
|
Route::get('/', [ContentController::class, 'home']);
|
2020-10-10 12:12:44 +02:00
|
|
|
Route::get('/category/{path}', [ContentController::class, 'index']);
|
2020-10-15 12:20:44 +02:00
|
|
|
Route::get('/search', [ContentController::class, 'search'])->name('content.search');
|
|
|
|
|
2020-10-10 12:12:44 +02:00
|
|
|
|
2020-10-15 12:20:44 +02:00
|
|
|
|
|
|
|
Route::group(['prefix' => 'admin'], function () {
|
|
|
|
Voyager::routes();
|
|
|
|
});
|