This project is created by mongoose and i am using zod for validation
Live link : https://sports-facility-booking3.vercel.app/
To deploy this project run
npm run start:dev
To find and fix this project code error i am using eslint and prettier
npm run lint
npm run lint:fix
POST /api/auth/signup
POST /api/auth/signin
POST /api/facility
PUT /api/facility/:id
DELETE /api/facility/:id
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of product to fetch |
GEt /api/facility/
GET /api/check-availability?date=2024-06-15
#### Create a Booking (User Only)
```http
POST /api/bookings
GET /api/bookings
GET /api/bookings/user