Change user bid to POST

This commit is contained in:
Nabeel Shahzad
2018-03-13 01:26:27 -05:00
parent acb289f6d0
commit bff80c2dc7
3 changed files with 17 additions and 13 deletions

View File

@@ -102,7 +102,7 @@ class UserController extends RestController
$user = $this->userRepo->find($this->getUserId($request));
# Add a bid
if ($request->isMethod('PUT')) {
if ($request->isMethod('PUT') || $request->isMethod('POST')) {
$flight_id = $request->input('flight_id');
$flight = $this->flightRepo->find($flight_id);
$bid = $this->flightSvc->addBid($flight, $user);