Yohohohohohooho | Sanrei Aya
Sanrei Aya


Server : LiteSpeed
System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : elvh3918 ( 1528)
PHP Version : 8.2.31
Disable Function : mail
Directory :  /home/elvh3918/www/diapersky.el-vanda.com/routes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/elvh3918/www/diapersky.el-vanda.com/routes/api.php
<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/** origin 
Route::get('/user', function (Request $request) {
    return $request->user();
})->middleware('auth:sanctum');
*/

Route::prefix('global')->group(function () {
    Route::get('select-supplier/{supplier}', [App\Http\Controllers\API\GlobalAPIController::class, 'selectSupplier']);
    Route::get('select-customer/{customer}', [App\Http\Controllers\API\GlobalAPIController::class, 'selectCustomer']);
    Route::get('select-product-id/{product}', [App\Http\Controllers\API\GlobalAPIController::class, 'selectProductID']);
    Route::get('select-product-code/{product}', [App\Http\Controllers\API\GlobalAPIController::class, 'selectProductCode']);
    Route::get('select-module/{typeData}/{parameter}', [App\Http\Controllers\API\GlobalAPIController::class, 'selectModule']);
    Route::get('edit-module/{typeData}/{parameter}', [App\Http\Controllers\API\GlobalAPIController::class, 'editModule']);
});

Route::prefix('report')->group(function () {
    Route::get('stock/{fromDate}/{type}', [App\Http\Controllers\API\ReportAPIController::class, 'stock']);
    Route::get('buying/{fromDate}/{type}', [App\Http\Controllers\API\ReportAPIController::class, 'buying']);
    Route::get('selling/{fromDate}/{type}', [App\Http\Controllers\API\ReportAPIController::class, 'selling']);
    Route::get('cashflows/{fromDate}/{type}', [App\Http\Controllers\API\ReportAPIController::class, 'cashflows']);
    Route::get('accounting/{fromDate}/{toDate}', [App\Http\Controllers\API\ReportAPIController::class, 'accounting']);
    Route::get('ledger/{fromDate}/{toDate}/{opt}', [App\Http\Controllers\API\ReportAPIController::class, 'ledger']);
    Route::get('ledger-daily/{fromDate}/{opt}', [App\Http\Controllers\API\ReportAPIController::class, 'ledgerDaily']);
    Route::get('ledger-monthly/{fromDate}/{opt}', [App\Http\Controllers\API\ReportAPIController::class, 'ledgerMonthly']);
    Route::get('ledger-yearly/{fromDate}/{opt}', [App\Http\Controllers\API\ReportAPIController::class, 'ledgerYearly']);
});

Route::prefix('content')->group(function () {
    Route::get('dashboard', [App\Http\Controllers\API\ContentAPIController::class, 'dashboard']);
});

Yohohohohohooho | Sanrei Aya