23 lines
804 B
PHP
23 lines
804 B
PHP
<?php
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
*/
|
|
|
|
use Modules\Company\Http\Controllers\CompanyController;
|
|
|
|
Route::middleware(['auth', 'verified', 'tenant.assigned', 'platform.admin'])
|
|
->prefix('admin')
|
|
->name('platform.')
|
|
->group(function (): void {
|
|
Route::get('/companies', [CompanyController::class, 'index'])->name('companies.index');
|
|
Route::post('/companies', [CompanyController::class, 'store'])->name('companies.store');
|
|
});
|