41 lines
1.9 KiB
PHP
41 lines
1.9 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
|
use App\Http\Controllers\AdminController;
|
|
use App\Http\Controllers\UserController;
|
|
use App\Http\Controllers\LayananPengajuanDpuDpaController;
|
|
use App\Http\Controllers\MahasiswaController;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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::group(['prefix' => 'admin'], function () {
|
|
Route::get('/', [AdminController::class, 'index'])->name('admin.dashboard');
|
|
Route::get('/layanan-dpudpa', [LayananPengajuanDpuDpaController::class, 'index'])->name('layanan-dpudpa.index');
|
|
//User
|
|
Route::get('/users', [UserController::class, 'index'])->name('users.index');
|
|
Route::POST('/users', [UserController::class, 'store'])->name('users.store');
|
|
Route::PUT('/users', [UserController::class, 'update'])->name('users.update');
|
|
Route::DELETE('/users', [UserController::class, 'destroy'])->name('users.destroy');
|
|
//Mahasiswa
|
|
Route::get('/mahasiswa', [MahasiswaController::class, 'index'])->name('mahasiswa.index');
|
|
Route::POST('/mahasiswa', [MahasiswaController::class, 'store'])->name('mahasiswa.store');
|
|
Route::PUT('/mahasiswa', [MahasiswaController::class, 'update'])->name('mahasiswa.update');
|
|
Route::DELETE('/mahasiswa', [MahasiswaController::class, 'destroy'])->name('mahasiswa.destroy');
|
|
//User Roles
|
|
Route::get('/users-roles', [UserController::class, 'userroles_index'])->name('users-roles.index');
|
|
});
|
|
|
|
|
|
Route::get('/layanan-dpudpa/tambah', [LayananPengajuanDpuDpaController::class, 'tambah'])->name('layanan-dpudpa.tambah');
|
|
Route::post('/layanan-dpudpa/tambah', [LayananPengajuanDpuDpaController::class, 'store'])->name('layanan-dpudpa.store'); |