mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-19 03:04:05 +00:00
Setup pint & run code style fix
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use InvoiceShelf\Http\Controllers\V1\Admin\Auth\LoginController;
|
||||
use InvoiceShelf\Http\Controllers\V1\Admin\Expense\ShowReceiptController;
|
||||
use InvoiceShelf\Http\Controllers\V1\Admin\Report\CustomerSalesReportController;
|
||||
@@ -18,7 +19,6 @@ use InvoiceShelf\Http\Controllers\V1\PDF\EstimatePdfController;
|
||||
use InvoiceShelf\Http\Controllers\V1\PDF\InvoicePdfController;
|
||||
use InvoiceShelf\Http\Controllers\V1\PDF\PaymentPdfController;
|
||||
use InvoiceShelf\Models\Company;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
// Module Asset Includes
|
||||
// ----------------------------------------------
|
||||
@@ -27,7 +27,6 @@ Route::get('/modules/styles/{style}', StyleController::class);
|
||||
|
||||
Route::get('/modules/scripts/{script}', ScriptController::class);
|
||||
|
||||
|
||||
// Admin Auth
|
||||
// ----------------------------------------------
|
||||
|
||||
@@ -37,7 +36,6 @@ Route::post('auth/logout', function () {
|
||||
Auth::guard('web')->logout();
|
||||
});
|
||||
|
||||
|
||||
// Customer auth
|
||||
// ----------------------------------------------
|
||||
|
||||
@@ -47,7 +45,6 @@ Route::post('/{company:slug}/customer/logout', function () {
|
||||
Auth::guard('customer')->logout();
|
||||
});
|
||||
|
||||
|
||||
// Report PDF & Expense Endpoints
|
||||
// ----------------------------------------------
|
||||
|
||||
@@ -73,14 +70,12 @@ Route::middleware('auth:sanctum')->prefix('reports')->group(function () {
|
||||
//----------------------------------
|
||||
Route::get('/profit-loss/{hash}', ProfitLossReportController::class);
|
||||
|
||||
|
||||
// download expense receipt
|
||||
// -------------------------------------------------
|
||||
Route::get('/expenses/{expense}/download-receipt', DownloadReceiptController::class);
|
||||
Route::get('/expenses/{expense}/receipt', ShowReceiptController::class);
|
||||
});
|
||||
|
||||
|
||||
// PDF Endpoints
|
||||
// ----------------------------------------------
|
||||
|
||||
@@ -99,7 +94,6 @@ Route::middleware('pdf-auth')->group(function () {
|
||||
Route::get('/payments/pdf/{payment:unique_hash}', PaymentPdfController::class);
|
||||
});
|
||||
|
||||
|
||||
// customer pdf endpoints for invoice, estimate and Payment
|
||||
// -------------------------------------------------
|
||||
|
||||
@@ -114,7 +108,6 @@ Route::prefix('/customer')->group(function () {
|
||||
Route::get('/payments/view/{email_log:token}', [CustomerPaymentPdfController::class, 'getPdf'])->name('payment');
|
||||
});
|
||||
|
||||
|
||||
// Setup for installation of app
|
||||
// ----------------------------------------------
|
||||
|
||||
@@ -122,7 +115,6 @@ Route::get('/installation', function () {
|
||||
return view('app');
|
||||
})->name('install')->middleware('redirect-if-installed');
|
||||
|
||||
|
||||
// Move other http requests to the Vue App
|
||||
// -------------------------------------------------
|
||||
|
||||
@@ -134,7 +126,7 @@ Route::get('{company:slug}/customer/{vue?}', function (Company $company) {
|
||||
return view('app')->with([
|
||||
'customer_logo' => get_company_setting('customer_portal_logo', $company->id),
|
||||
'current_theme' => get_company_setting('customer_portal_theme', $company->id),
|
||||
'customer_page_title' => get_company_setting('customer_portal_page_title', $company->id)
|
||||
'customer_page_title' => get_company_setting('customer_portal_page_title', $company->id),
|
||||
]);
|
||||
})->where('vue', '[\/\w\.-]*')->name('customer.dashboard')->middleware(['install']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user