murdercode/Nova4-TinymceEditor

View on GitHub
routes/api.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

use App\Http\Middleware\VerifyCsrfToken;
use Illuminate\Support\Facades\Route;
use Murdercode\TinymceEditor\Http\Controllers\TinyImageController;
use Murdercode\TinymceEditor\Http\Middleware\TinymceMiddleware;

// Without CSRF protection
Route::post('/upload', [TinyImageController::class, 'upload'])->name('tinymce.upload')
    ->withoutMiddleware([VerifyCsrfToken::class])
    ->middleware(TinymceMiddleware::class);