%PDF- %PDF-
| Direktori : /home2/rezakur1/kurniadev.rezakurnia.com/kurniadev/routes/ |
| Current File : /home2/rezakur1/kurniadev.rezakurnia.com/kurniadev/routes/web.php |
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\authController;
use App\Http\Controllers\guestController;
use App\Http\Controllers\projectController;
use App\Http\Controllers\categoryController;
use App\Http\Controllers\dashboardController;
use App\Http\Controllers\landingPageController;
use App\Http\Controllers\mainProjectController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/
Route::get('/', [landingPageController::class, 'index'])->name('landing-page');
Route::get('/main-projects', [mainProjectController::class, 'index'])->name('main-projects');
Route::get('/login', [authController::class, 'login'])->name('login');
Route::post('actionlogin', [authController::class, 'actionlogin'])->name('actionlogin');
Route::post('actionlogout', [authController::class, 'actionlogout'])->name('actionlogout');
// mideleware
Route::middleware(['auth'])->group(function () {
// Dashboard
Route::get('/dashboard', [dashboardController::class, 'index'])->name('dashboard');
Route::get('/guest', [guestController::class, 'index'])->name('guest-user');
// Category
Route::get('/category', [categoryController::class, 'index'])->name('category');
Route::post('/category/store', [categoryController::class, 'store'])->name('category.store');
Route::post('/category/update/{id}', [categoryController::class, 'update'])->name('category.update');
// Project
Route::get('/project', [projectController::class, 'index'])->name('project');
Route::post('/project/store', [projectController::class, 'store'])->name('project.store');
Route::delete('/project/delete/{id}', [projectController::class, 'destroy'])->name('project.delete');
});