akaunting/routes/common.php

28 lines
979 B
PHP
Raw Normal View History

2019-11-16 10:21:14 +03:00
<?php
2020-01-31 00:23:09 +03:00
/**
* 'common' middleware applied to all routes
*
* @see \App\Providers\Route::mapCommonRoutes
*/
2020-01-30 15:19:33 +03:00
2019-11-16 10:21:14 +03:00
Route::group(['middleware' => 'auth'], function () {
Route::group(['as' => 'uploads.', 'prefix' => 'uploads'], function () {
Route::get('{id}', 'Common\Uploads@get')->name('get');
Route::get('{id}/show', 'Common\Uploads@show')->name('show');
Route::get('{id}/download', 'Common\Uploads@download')->name('download');
});
Route::group(['middleware' => ['permission:read-admin-panel']], function () {
Route::group(['middleware' => ['menu.admin']], function () {
2020-01-07 17:15:00 +03:00
Route::get('/', 'Common\Dashboards@show')->name('dashboard');
2019-11-16 10:21:14 +03:00
});
Route::get('wizard', 'Wizard\Companies@edit')->name('wizard.edit');
});
Route::group(['middleware' => ['menu.portal', 'permission:read-client-portal']], function () {
Route::get('portal', 'Portal\Dashboard@index')->name('portal.dashboard');
});
});