mirror of
https://gh.wpcy.net/https://github.com/thomas-deep/freescoutAI.git
synced 2026-07-16 22:28:15 +08:00
24 lines
811 B
PHP
24 lines
811 B
PHP
<?php
|
|
|
|
namespace Modules\FreeScoutAI\Http;
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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.
|
|
|
|
|
*/
|
|
|
|
Route::group(['middleware' => ['web', 'auth', 'roles'], 'roles' => ['admin', 'user']], function () {
|
|
Route::get('/mailbox/{mailbox_id}/freescoutai', 'FreeScoutAIController@settings')
|
|
->name('freescoutai.settings');
|
|
|
|
Route::post('/mailbox/{mailbox_id}/freescoutai', 'FreeScoutAIController@saveSettings')
|
|
->name('freescoutai.save_settings');
|
|
});
|