added more route instructions
This commit is contained in:
parent
9262ef5fb4
commit
7d9befedbf
@ -16,18 +16,6 @@ class Route extends Provider
|
|||||||
*/
|
*/
|
||||||
protected $namespace = 'App\Http\Controllers';
|
protected $namespace = 'App\Http\Controllers';
|
||||||
|
|
||||||
/**
|
|
||||||
* Define your route model bindings, pattern filters, etc.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function boot()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
|
|
||||||
parent::boot();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Define the routes for the application.
|
* Define the routes for the application.
|
||||||
*
|
*
|
||||||
@ -50,8 +38,6 @@ class Route extends Provider
|
|||||||
$this->mapPortalRoutes();
|
$this->mapPortalRoutes();
|
||||||
|
|
||||||
$this->mapSignedRoutes();
|
$this->mapSignedRoutes();
|
||||||
|
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// 'admin' middleware applied via App\Providers\Route
|
/**
|
||||||
|
* 'admin' middleware applied to all routes
|
||||||
|
*
|
||||||
|
* @see \App\Providers\Route::mapAdminRoutes
|
||||||
|
* @see \modules\OfflinePayments\Routes\admin.php for module example
|
||||||
|
*/
|
||||||
|
|
||||||
Route::group(['as' => 'uploads.', 'prefix' => 'uploads'], function () {
|
Route::group(['as' => 'uploads.', 'prefix' => 'uploads'], function () {
|
||||||
Route::delete('{id}', 'Common\Uploads@destroy')->name('destroy');
|
Route::delete('{id}', 'Common\Uploads@destroy')->name('destroy');
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 'api' prefix applied to all routes
|
||||||
|
*
|
||||||
|
* @see \App\Providers\Route::mapApiRoutes
|
||||||
|
*/
|
||||||
|
|
||||||
$api = app('Dingo\Api\Routing\Router');
|
$api = app('Dingo\Api\Routing\Router');
|
||||||
|
|
||||||
$api->version('v2', ['middleware' => ['api']], function($api) {
|
$api->version('v2', ['middleware' => ['api']], function($api) {
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// 'common' middleware applied via App\Providers\Route
|
/**
|
||||||
|
* 'common' middleware applied to all routes
|
||||||
|
*
|
||||||
|
* @see \App\Providers\Route::mapCommonRoutes
|
||||||
|
*/
|
||||||
|
|
||||||
Route::group(['middleware' => 'auth'], function () {
|
Route::group(['middleware' => 'auth'], function () {
|
||||||
Route::group(['as' => 'uploads.', 'prefix' => 'uploads'], function () {
|
Route::group(['as' => 'uploads.', 'prefix' => 'uploads'], function () {
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// 'guest' middleware applied via App\Providers\Route
|
/**
|
||||||
|
* 'guest' middleware applied to all routes
|
||||||
|
*
|
||||||
|
* @see \App\Providers\Route::mapGuestRoutes
|
||||||
|
* @see \modules\PaypalStandard\Routes\guest.php for module example
|
||||||
|
*/
|
||||||
|
|
||||||
Route::group(['prefix' => 'auth'], function () {
|
Route::group(['prefix' => 'auth'], function () {
|
||||||
Route::get('login', 'Auth\Login@create')->name('login');
|
Route::get('login', 'Auth\Login@create')->name('login');
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// 'install' middleware applied via App\Providers\Route
|
/**
|
||||||
|
* 'install' middleware and prefix applied to all routes
|
||||||
|
*
|
||||||
|
* @see \App\Providers\Route::mapInstallRoutes
|
||||||
|
*/
|
||||||
|
|
||||||
Route::get('/', 'Install\Requirements@show');
|
Route::get('/', 'Install\Requirements@show');
|
||||||
Route::get('requirements', 'Install\Requirements@show')->name('install.requirements');
|
Route::get('requirements', 'Install\Requirements@show')->name('install.requirements');
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// 'portal' middleware applied via App\Providers\Route
|
/**
|
||||||
|
* 'portal' middleware and prefix applied to all routes
|
||||||
|
*
|
||||||
|
* @see \App\Providers\Route::mapPortalRoutes
|
||||||
|
* @see \modules\OfflinePayments\Routes\portal.php for module example
|
||||||
|
*/
|
||||||
|
|
||||||
Route::group(['as' => 'portal.'], function () {
|
Route::group(['as' => 'portal.'], function () {
|
||||||
Route::get('invoices/{invoice}/print', 'Portal\Invoices@printInvoice')->name('invoices.print');
|
Route::get('invoices/{invoice}/print', 'Portal\Invoices@printInvoice')->name('invoices.print');
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// 'signed' middleware applied via App\Providers\Route
|
/**
|
||||||
|
* 'signed' middleware and prefix applied to all routes
|
||||||
|
*
|
||||||
|
* @see \App\Providers\Route::mapSignedRoutes
|
||||||
|
* @see \modules\OfflinePayments\Routes\signed.php for module example
|
||||||
|
*/
|
||||||
|
|
||||||
Route::get('invoices/{invoice}', 'Portal\Invoices@signed')->name('signed.invoices.show');
|
Route::get('invoices/{invoice}', 'Portal\Invoices@signed')->name('signed.invoices.show');
|
||||||
Route::get('invoices/{invoice}/print', 'Portal\Invoices@printInvoice')->name('signed.invoices.print');
|
Route::get('invoices/{invoice}/print', 'Portal\Invoices@printInvoice')->name('signed.invoices.print');
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// 'wizard' middleware applied via App\Providers\Route
|
/**
|
||||||
|
* 'wizard' middleware and prefix applied to all routes
|
||||||
|
*
|
||||||
|
* @see \App\Providers\Route::mapWizardRoutes
|
||||||
|
*/
|
||||||
|
|
||||||
Route::group(['as' => 'wizard.'], function () {
|
Route::group(['as' => 'wizard.'], function () {
|
||||||
Route::get('companies', 'Wizard\Companies@edit')->name('companies.edit');
|
Route::get('companies', 'Wizard\Companies@edit')->name('companies.edit');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user