SyntaxSquad/DADProject#16 feat: Can now start matches, just missing the actuall gameplay
This commit is contained in:
+4
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user