Answer the inbox from the panel, with templates
A reply starts from a template filled in the language the person wrote in, is sent by the application when it has a mailer that delivers or handed to the replier's mail program otherwise, and is recorded on the submission. The same is available through the API. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -13,6 +13,7 @@ use App\Http\Controllers\Api\PublicApi\V1\SiteController;
|
||||
use App\Http\Controllers\Api\PublicApi\V1\TelemetryController;
|
||||
use App\Http\Controllers\Api\V1\ApiTokenController;
|
||||
use App\Http\Controllers\Api\V1\ApplicationController as AdminApplicationController;
|
||||
use App\Http\Controllers\Api\V1\ApplicationReplyController;
|
||||
use App\Http\Controllers\Api\V1\AuditController;
|
||||
use App\Http\Controllers\Api\V1\BatchController;
|
||||
use App\Http\Controllers\Api\V1\CallController;
|
||||
@@ -223,6 +224,9 @@ Route::prefix('v1')->name('api.v1.')->group(function () {
|
||||
// The inbox. Submissions arrive from the public site, never from here.
|
||||
Route::apiResource('applications', AdminApplicationController::class)
|
||||
->only(['index', 'show', 'update', 'destroy']);
|
||||
Route::get('applications/{application}/replies', [ApplicationReplyController::class, 'index'])->name('applications.replies.index');
|
||||
Route::post('applications/{application}/reply', [ApplicationReplyController::class, 'store'])->name('applications.replies.store');
|
||||
Route::get('reply-templates', [ApplicationReplyController::class, 'templates'])->name('reply-templates.index');
|
||||
Route::post('applications/{application}/restore', [AdminApplicationController::class, 'restore'])
|
||||
->withTrashed()
|
||||
->name('applications.restore');
|
||||
|
||||
Reference in New Issue
Block a user