EscolaLMS/Images

View on GitHub
src/routes.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

use EscolaLms\Images\Http\Controllers\ImagesController;
use Illuminate\Support\Facades\Route;

Route::group(['prefix' => 'api/images'], function () {
    Route::get('/img', [ImagesController::class, 'image'])->middleware(['throttle:images.render']);
    Route::post('/img', [ImagesController::class, 'images']);
});