Skip to content

Commit

Permalink
Fix unvote endpoint not registering
Browse files Browse the repository at this point in the history
  • Loading branch information
andyksaw committed Dec 5, 2024
1 parent 8f49888 commit 103b9a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@

Route::patch('{build}/set', [MinecraftBuildController::class, 'patch']);

Route::resource('{build}/vote', MinecraftBuildVoteController::class)
->only(['store', 'destroy']);
Route::post('{build}/vote', [MinecraftBuildVoteController::class, 'store']);
Route::delete('{build}/vote', [MinecraftBuildVoteController::class, 'destroy']);
});
Route::resource('build', MinecraftBuildController::class);

Expand Down

0 comments on commit 103b9a1

Please sign in to comment.