From d3c7ca75f0544782f97443e4048df6223ebf6ad1 Mon Sep 17 00:00:00 2001 From: Claret Nnamocha Date: Mon, 16 Dec 2019 20:41:59 +0100 Subject: [PATCH] Documenting web routes --- routes/web.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/routes/web.php b/routes/web.php index b9f70541..2aab28d9 100644 --- a/routes/web.php +++ b/routes/web.php @@ -49,11 +49,16 @@ Route::group(['prefix' => 'reports'], function () { }); +// download invoice pdf with a unique_hash $id +// ------------------------------------------------- Route::get('/invoices/pdf/{id}', [ 'as' => 'get.invoice.pdf', 'uses' => 'FrontendController@getInvoicePdf' ]); + +// download estimate pdf with a unique_hash $id +// ------------------------------------------------- Route::get('/estimates/pdf/{id}', [ 'as' => 'get.estimate.pdf', 'uses' => 'FrontendController@getEstimatePdf' @@ -74,12 +79,14 @@ Route::get('/expenses/{id}/receipt/{hash}', [ 'uses' => 'ExpensesController@downloadReceipt' ]); - +// Setup for instalation of app +// ---------------------------------------------- Route::get('/on-boarding', function () { return view('app'); })->name('install')->middleware('redirect-if-installed'); - +// Move other http requests to the Vue App +// ------------------------------------------------- Route::get('/{vue?}', function () { return view('app'); })->where('vue', '[\/\w\.-]*')->name('home')->middleware('install');