add set scheduling api

This commit is contained in:
Yisroel Baum 2026-08-10 20:05:53 +03:00
parent bdb266746d
commit 98ae9bf088
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
20 changed files with 935 additions and 1 deletions

View file

@ -2,6 +2,7 @@
use App\Http\Controllers\AuthController;
use App\Http\Controllers\SetController;
use App\Http\Controllers\ScheduleController;
use App\Http\Middleware\AuthMiddleware;
use Illuminate\Support\Facades\Route;
@ -14,5 +15,9 @@ Route::middleware(AuthMiddleware::class)->group(function (): void {
Route::get('/sets', [SetController::class, 'index']);
Route::get('/sets/{setId}', [SetController::class, 'show'])
->whereNumber('setId');
Route::post('/schedules', [ScheduleController::class, 'store']);
Route::get('/schedules', [ScheduleController::class, 'index']);
Route::get('/schedules/{scheduleId}', [ScheduleController::class, 'show'])
->whereNumber('scheduleId');
Route::post('/logout', [AuthController::class, 'logout']);
});