mirror of
https://gh.wpcy.net/https://github.com/thomas-deep/freescoutAI.git
synced 2026-05-23 15:54:16 +08:00
42 lines
1.5 KiB
PHP
42 lines
1.5 KiB
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');
|
|
|
|
Route::post('/freescoutai/get-models', 'FreeScoutAIController@getModels')
|
|
->name('freescoutai.get_models');
|
|
|
|
Route::get('/freescoutai/check-enabled', 'FreeScoutAIController@checkEnabled')
|
|
->name('freescoutai.check_enabled');
|
|
|
|
Route::post('/freescoutai/prioritize', 'FreeScoutAIController@prioritize')
|
|
->name('freescoutai.prioritize');
|
|
|
|
Route::post('/freescoutai/suggest', 'FreeScoutAIController@suggest')
|
|
->name('freescoutai.suggest');
|
|
|
|
Route::post('/freescoutai/modify', 'FreeScoutAIController@modify')
|
|
->name('freescoutai.modify');
|
|
|
|
Route::post('/freescoutai/summarize', 'FreeScoutAIController@summarize')
|
|
->name('freescoutai.summarize');
|
|
});
|