mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
fix web route
This commit is contained in:
@ -56,8 +56,8 @@ Route::get('/{company:slug}/customer/logout', function () {
|
||||
Auth::guard('customer')->logout();
|
||||
});
|
||||
|
||||
Route::middleware('pdf-auth')->group(function () {
|
||||
Route::prefix('reports')->group(function () {
|
||||
|
||||
Route::middleware('auth:sanctum')->prefix('reports')->group(function () {
|
||||
|
||||
// sales report by customer
|
||||
//----------------------------------
|
||||
@ -78,8 +78,16 @@ Route::middleware('pdf-auth')->group(function () {
|
||||
// report for profit and loss
|
||||
//----------------------------------
|
||||
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);
|
||||
});
|
||||
|
||||
Route::middleware('pdf-auth')->group(function () {
|
||||
|
||||
// invoice pdf
|
||||
// -------------------------------------------------
|
||||
Route::get('/invoices/pdf/{invoice:unique_hash}', InvoicePdfController::class);
|
||||
@ -91,14 +99,10 @@ Route::middleware('pdf-auth')->group(function () {
|
||||
// payment pdf
|
||||
// -------------------------------------------------
|
||||
Route::get('/payments/pdf/{payment:unique_hash}', PaymentPdfController::class);
|
||||
|
||||
// download expense receipt
|
||||
// -------------------------------------------------
|
||||
Route::get('/expenses/{expense}/download-receipt', DownloadReceiptController::class);
|
||||
Route::get('/expenses/{expense}/receipt', ShowReceiptController::class);
|
||||
});
|
||||
|
||||
|
||||
|
||||
// customer pdf endpoints for invoice, estimate and Payment
|
||||
// -------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user