mgsmus
<?php
use App\Http\Controllers\HomeController;
use Illuminate\Support\Facades\Route;
Route::get('/', [HomeController::class, 'index'])
->name('index');
Route::get('viral', [HomeController::class, 'viral'])
->name('viral');
Route::get('random', [HomeController::class, 'random'])
->name('random');
Route::get('search', [HomeController::class, 'search'])
->name('search');
Route::get('view/{id}/{slug}', [HomeController::class, 'show'])
->name('show');
Route::group(['middleware' => ['auth','verified']], function () {
Route::post('write', [HomeController::class, 'store'])
->middleware('verified')
->name('store');
Route::post('save_like', [HomeController::class, 'save_like'])
->middleware('verified')
->name('save_like');
Route::post('save_favorite', [HomeController::class, 'save_favorite'])
->middleware('verified')
->name('save_favorite');
Route::get('post/delete/{id}', [HomeController::class, 'delete_user_post'])
->middleware('verified')
->name('delete_user_post');
// report
Route::get('report/{id}', [HomeController::class, 'report'])
->middleware('verified')
->name('report');
});
require __DIR__.'/gender.php';
require __DIR__.'/points.php';
require __DIR__.'/comments.php';
require __DIR__.'/categories.php';
require __DIR__.'/pages.php';
require __DIR__.'/tags.php';
require __DIR__.'/admin.php';
require __DIR__.'/auth.php';