SyntaxSquad/DADProject#16 feat: Can now start matches, just missing the actuall gameplay

This commit is contained in:
AfonsoCMSousa
2026-01-03 04:52:02 +00:00
parent 3dcd8df4c7
commit e0ca8e51a6
12 changed files with 793 additions and 490 deletions
+4 -3
View File
@@ -58,10 +58,11 @@ Route::prefix('v1')->group(function () {
});
Route::prefix('matches')->group(function () {
Route::apiResource('/', MatchController::class)->parameters(['' => 'match']);
Route::post('/{match}/join', [MatchController::class, 'join']);
Route::post('host', [MatchController::class, 'host']); // <--- NOVA
Route::post('host', [MatchController::class, 'host']);
Route::get('open', [MatchController::class, 'open']);
Route::post('/{match}/join', [MatchController::class, 'join']);
Route::post('/{match}/start', [MatchController::class, 'start']); // Changed to /start to be explicit
Route::apiResource('/', MatchController::class)->parameters(['' => 'match']);
});
// Admin Routes