new chatgpt module for api intergration

This commit is contained in:
Mark Gregory
2026-06-24 09:56:13 +01:00
parent c5335dc635
commit a42b5787b9
28 changed files with 1028 additions and 107 deletions
+11 -13
View File
@@ -1,16 +1,14 @@
<?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 Illuminate\Support\Facades\Route;
use Modules\ChatGPT\Http\Controllers\ChatGPTController;
Route::prefix('chatgpt')->group(function() {
Route::get('/', 'ChatGPTController@index');
});
Route::middleware(['web', 'auth'])
->prefix('chatgpt')
->name('chatgpt.')
->group(function (): void {
Route::get('/', [ChatGPTController::class, 'index'])->name('index');
Route::post('/settings', [ChatGPTController::class, 'store'])->name('settings.store');
Route::put('/settings/{setting}', [ChatGPTController::class, 'update'])->name('settings.update');
Route::delete('/settings/{setting}', [ChatGPTController::class, 'destroy'])->name('settings.destroy');
});