pos-gis/routes/admin.php

67 lines
3.4 KiB
PHP
Raw Normal View History

2024-10-07 06:13:42 +00:00
<?php
use Illuminate\Support\Facades\Route;
// Route::domain('')->group(function () {
Route::get('/', 'Auth\LoginController@login_admin')->name('admin.viewlogin');
Route::get('/admin_login', 'Auth\LoginController@login_admin')->name('admin.login');
Route::post('/admin_action', 'Auth\LoginController@authenticate')->name('admin.login.action');
Route::get('logs', [\Rap2hpoutre\LaravelLogViewer\LogViewerController::class, 'index']);
Route::get('/getlogout', 'Auth\LoginController@logout_admin')->name('getlogout');
Route::group(['middleware' => ['auth:admin','prevent.back.history']], function () {
Route::get('/dashboard', 'HomeController@index')->name('dashboard');
// DASHBOARD
Route::get('/home', 'HomeController@index')->name('home');
Route::get('data/dashboard', 'HomeController@data')->name('data.dashboard');
Route::get('data/dashboard_pemda', 'HomeController@data_pemda')->name('data.dashboard_pemda');
// USER
Route::prefix('/user')->group(function () {
Route::get('list/{any}', 'UserController@list')->name('user.list');
Route::get('data/table/{any}', 'UserController@data_table')->name('user.data_table');
Route::post('act_any/{any}', 'UserController@act_any')->name('user.act_any');
});
// CONTENT MANAGEMENT
Route::prefix('/management_content')->group(function () {
Route::get('list/{any}', 'ManagementContentController@list')->name('management_content.list');
Route::get('data/table/{any}', 'ManagementContentController@data_table')->name('management_content.data_table');
Route::post('act_any/{any}', 'ManagementContentController@act_any')->name('management_content.act_any');
});
// MENU
Route::get('menu/{id}/index', 'MenuController@admin_index')->name('menu.index');
Route::post('menu/{id}/store', 'MenuController@admin_store')->name('menu.store');
Route::post('menu/{id}/menu_get', 'MenuController@admin_menu_get')->name('menu.menu_get');
Route::get('data/menu/{id}', 'MenuController@admin_data')->name('data.menu');
// REF
Route::prefix('ref')->group(function () {
Route::get('index', 'RefController@index')->name('ref.index');
Route::get('data', 'RefController@data')->name('ref.data');
Route::post('edit', 'RefController@edit')->name('ref.edit');
Route::post('store', 'RefController@store')->name('ref.store');
Route::post('store/custom', 'RefController@storeCustom')->name('ref.storeCustom');
Route::post('active','RefController@SetActive')->name('ref.setActive');
Route::post('hapus', 'RefController@hapus')->name('ref.hapus');
Route::post('import_xls', 'RefController@importXls')->name('ref.import.xls');
});
//CHECK VALIDATE
Route::post('/set_session_theme','HomeController@set_session_theme')->name('set_session_theme');
Route::post('/global_ref/{any}', 'GlobalController@ref_any')->name('global.ref_any');
});
Route::group(['middleware' => ['auth:admin']], function () {
Route::get('/global/{type}/{any}', 'GlobalController@export_any')->name('global.export_any');
});
// });