feat: add insight timer
This commit is contained in:
@@ -14,6 +14,9 @@
|
||||
use App\Http\Controllers\SurveyQuestionController;
|
||||
use App\Http\Controllers\SliderController;
|
||||
use App\Http\Controllers\SceneController;
|
||||
use App\Http\Controllers\BellSoundController;
|
||||
use App\Http\Controllers\BackgroundSoundController;
|
||||
use App\Http\Controllers\TimerPresetController;
|
||||
use App\Http\Controllers\ImageController;
|
||||
use App\Http\Controllers\MusicController;
|
||||
use App\Http\Controllers\MediaController;
|
||||
@@ -170,6 +173,33 @@
|
||||
Route::delete('/scenes/{id}', [SceneController::class, 'destroy']);
|
||||
|
||||
|
||||
/// insight timer (زمانسنج)
|
||||
// Builder catalogs (bells / background sounds / background images) in one call.
|
||||
Route::get('/timer/options', [TimerPresetController::class, 'options']);
|
||||
|
||||
// Saved timers per user (ذخیرهشدههای من).
|
||||
Route::get('/timer-presets', [TimerPresetController::class, 'index']);
|
||||
Route::post('/timer-presets', [TimerPresetController::class, 'store']);
|
||||
Route::get('/timer-presets/{id}', [TimerPresetController::class, 'show']);
|
||||
Route::put('/timer-presets/{id}', [TimerPresetController::class, 'update']);
|
||||
Route::delete('/timer-presets/{id}', [TimerPresetController::class, 'destroy']);
|
||||
|
||||
// Timer sound/image catalogs (POST update for multipart uploads).
|
||||
Route::get('/bell-sounds', [BellSoundController::class, 'index']);
|
||||
Route::post('/bell-sounds', [BellSoundController::class, 'store']);
|
||||
Route::get('/bell-sounds/{id}', [BellSoundController::class, 'show']);
|
||||
Route::post('/bell-sounds/{id}', [BellSoundController::class, 'update']);
|
||||
Route::delete('/bell-sounds/{id}', [BellSoundController::class, 'destroy']);
|
||||
|
||||
Route::get('/background-sounds', [BackgroundSoundController::class, 'index']);
|
||||
Route::post('/background-sounds', [BackgroundSoundController::class, 'store']);
|
||||
Route::get('/background-sounds/{id}', [BackgroundSoundController::class, 'show']);
|
||||
Route::post('/background-sounds/{id}', [BackgroundSoundController::class, 'update']);
|
||||
Route::delete('/background-sounds/{id}', [BackgroundSoundController::class, 'destroy']);
|
||||
|
||||
// Background images for timers reuse the shared images catalog (see /images routes).
|
||||
|
||||
|
||||
|
||||
///media
|
||||
Route::get('/media/filters', [MediaController::class, 'filters']);
|
||||
|
||||
Reference in New Issue
Block a user