Nachrichten-Plugin 1.0.0: Direktnachrichten, Gruppen, Anhänge, GIFs, Emojis

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-27 16:34:53 +00:00
commit 2844452002
55 changed files with 5448 additions and 0 deletions

15
routes/api.php Normal file
View file

@ -0,0 +1,15 @@
<?php
use Illuminate\Support\Facades\Route;
use Inhaus\Plugins\Chat\Http\Controllers\ConversationController;
use Inhaus\Plugins\Chat\Http\Controllers\MessageController;
// /api/v1/chat … für die Inhaus-App (Token nötig) – dieselben Regeln wie im Portal
Route::prefix('chat')->group(function () {
Route::get('/conversations', [ConversationController::class, 'index']);
Route::post('/direct', [ConversationController::class, 'direct'])->middleware('throttle:30,1');
Route::get('/conversations/{conversation}/messages', [MessageController::class, 'index']);
Route::post('/conversations/{conversation}/messages', [MessageController::class, 'store'])->middleware('throttle:60,1');
Route::post('/conversations/{conversation}/read', [MessageController::class, 'read']);
Route::get('/unread', [MessageController::class, 'unread']);
});