add module konfirmasibank

This commit is contained in:
KhatamNugraha
2023-07-17 14:35:12 +07:00
commit f51d19cd5f
43 changed files with 1934 additions and 0 deletions

0
Routes/.gitkeep Normal file
View File

18
Routes/api.php Normal file
View File

@ -0,0 +1,18 @@
<?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::middleware('auth:api')->get('/konfirmasibank', function (Request $request) {
return $request->user();
});

23
Routes/web.php Normal file
View File

@ -0,0 +1,23 @@
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
use Modules\KonfirmasiBank\Http\Controllers\KonfirmasiBankController;
$module = file_get_contents(dirname(__FILE__, 2) . '/module.json');
$module = json_decode($module);
Route::group(['middleware' => ['auth', 'verified']], function () {
Route::resource('konfirmasibank', KonfirmasiBankController::class);
// Route::post('konfirmasibank/getPdf', [KonfirmasiBankController::class, 'getPdf'])->name('getPdf');
Route::Post('/export',[KonfirmasiBankController::class,'export'])->name('konfirmasibank.export');
});