mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
Documenting web routes
This commit is contained in:
@ -49,11 +49,16 @@ Route::group(['prefix' => 'reports'], function () {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// download invoice pdf with a unique_hash $id
|
||||||
|
// -------------------------------------------------
|
||||||
Route::get('/invoices/pdf/{id}', [
|
Route::get('/invoices/pdf/{id}', [
|
||||||
'as' => 'get.invoice.pdf',
|
'as' => 'get.invoice.pdf',
|
||||||
'uses' => 'FrontendController@getInvoicePdf'
|
'uses' => 'FrontendController@getInvoicePdf'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
||||||
|
// download estimate pdf with a unique_hash $id
|
||||||
|
// -------------------------------------------------
|
||||||
Route::get('/estimates/pdf/{id}', [
|
Route::get('/estimates/pdf/{id}', [
|
||||||
'as' => 'get.estimate.pdf',
|
'as' => 'get.estimate.pdf',
|
||||||
'uses' => 'FrontendController@getEstimatePdf'
|
'uses' => 'FrontendController@getEstimatePdf'
|
||||||
@ -74,12 +79,14 @@ Route::get('/expenses/{id}/receipt/{hash}', [
|
|||||||
'uses' => 'ExpensesController@downloadReceipt'
|
'uses' => 'ExpensesController@downloadReceipt'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
// Setup for instalation of app
|
||||||
|
// ----------------------------------------------
|
||||||
Route::get('/on-boarding', function () {
|
Route::get('/on-boarding', function () {
|
||||||
return view('app');
|
return view('app');
|
||||||
})->name('install')->middleware('redirect-if-installed');
|
})->name('install')->middleware('redirect-if-installed');
|
||||||
|
|
||||||
|
// Move other http requests to the Vue App
|
||||||
|
// -------------------------------------------------
|
||||||
Route::get('/{vue?}', function () {
|
Route::get('/{vue?}', function () {
|
||||||
return view('app');
|
return view('app');
|
||||||
})->where('vue', '[\/\w\.-]*')->name('home')->middleware('install');
|
})->where('vue', '[\/\w\.-]*')->name('home')->middleware('install');
|
||||||
|
|||||||
Reference in New Issue
Block a user