JacobFitzp/nova-canvas

View on GitHub
routes/api.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

use Illuminate\Support\Facades\Route;
use Jacobfitzp\NovaCanvas\Http\Controllers\ImageUploadController;
use Spatie\LaravelImageOptimizer\Middlewares\OptimizeImages;

Route::post('/upload', ImageUploadController::class)
    ->middleware(OptimizeImages::class)
    ->name('nova-canvas.upload');