- Linting... Prettier...
This commit is contained in:
10
app/api/bid.js
Normal file
10
app/api/bid.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import { API_ENDPOINTS, requestPost } from './index.js';
|
||||
|
||||
export const placeBid = ({ bidAmount, bidderId, eventId, itemId, maxAmount }, auth) => {
|
||||
const requestOptions = { Authorization: auth ? `Bearer ${auth}` : null };
|
||||
return requestPost({
|
||||
path: `${API_ENDPOINTS.PLACE_BID}/${itemId}`,
|
||||
body: { bidAmount, bidderId, eventId, maxAmount },
|
||||
requestOptions,
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user