TIF_E41210178/routes/web.php

68 lines
2.8 KiB
PHP

<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\AuthController;
use App\Http\Controllers\DashboardController;
use App\Http\Controllers\Admin\RoleController;
use App\Http\Controllers\Admin\UserController;
use App\Http\Controllers\Admin\HewanController;
use App\Http\Controllers\Admin\KategoriController;
use App\Http\Controllers\Admin\DashboardAdminController;
/*
|--------------------------------------------------------------------------
| 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('/', [DashboardController::class, 'index']);
Route::get('/media/hewan', [DashboardController::class, 'mediaHewan']);
Route::get('/getHewanByKategori/{id}', [DashboardController::class, 'getHewan']);
Route::get('/media/buah', [DashboardController::class, 'mediaBuah']);
Route::get('/media/angka', [DashboardController::class, 'mediaAngka']);
Route::get('/media/huruf', [DashboardController::class, 'mediaHuruf']);
Route::post('/predict/hewan', [DashboardController::class, 'predictHewan']);
Route::post('/predict/buah', [DashboardController::class, 'predictBuah']);
Route::post('/predict/angka', [DashboardController::class, 'predictAngka']);
Route::post('/predict/huruf', [DashboardController::class, 'predictHuruf']);
### Auth ###
Route::get('/login', [AuthController::class, 'index']);
Route::post('/login', [AuthController::class, 'login']);
Route::get('/logout', [AuthController::class, 'logout']);
### Dashboard Admin ###
Route::get('/dashboard', [DashboardAdminController::class, 'index']);
### Hewan ###
Route::get('/hewan', [HewanController::class, 'index']);
Route::post('/hewan', [HewanController::class, 'store']);
Route::put('/hewan/{id}', [HewanController::class, 'update']);
Route::delete('/hewan/{id}', [HewanController::class, 'destroy']);
### Kategori ###
Route::get('/kategori', [KategoriController::class, 'index']);
Route::post('/kategori', [KategoriController::class, 'store']);
Route::put('/kategori/{id}', [KategoriController::class, 'update']);
Route::delete('/kategori/{id}', [KategoriController::class, 'destroy']);
### User ###
Route::get('/user', [UserController::class, 'index']);
Route::post('/user', [UserController::class, 'store']);
Route::put('/user/{id}', [UserController::class, 'update']);
Route::delete('/user/{id}', [UserController::class, 'destroy']);
### Role ###
Route::get('/role', [RoleController::class, 'index']);
Route::post('/role', [RoleController::class, 'store']);
Route::put('/role/{id}', [RoleController::class, 'update']);
Route::delete('/role/{id}', [RoleController::class, 'destroy']);