dstpabuaran.com/routes/api.php
Yoga Pangestu a138ffe63c feat: add media library configuration and file upload components
- Added `media-library.php` configuration file for managing media uploads and conversions.
- Updated `filesystems.php` to set default visibility for AWS S3 storage.
- Implemented `FileUpload` component for handling file uploads with preview and error handling.
- Created `ImagePreviewModal` component for displaying image previews in a modal.
- Introduced `Attachment` UI components for better file attachment handling.
- Added `useFileUpload` hook to manage file upload state and logic.
- Implemented utility functions for uploading files to S3 with presigned URLs.
- Created API route for generating presigned URLs for file uploads.
2026-07-30 10:16:49 +07:00

9 lines
252 B
PHP

<?php
use App\Http\Controllers\Api\PresignedUrlController;
use Illuminate\Support\Facades\Route;
Route::post('/presigned-url', [PresignedUrlController::class, 'store'])
->middleware(['web', 'auth', 'verified'])
->name('presigned-url.store');