cal.pub0.org/pages/api
Alex van Andel a506c7da33
Refactor + fix userIds filter (#179)
This fix means a behaviour change to GET calls. Instead of a JSON
payload, instead a filter param has been added to the URL itself. GET
payloads are very unexpected in API designs, even though supported.

* Todo write tests (with postman?)
* Turn isAdmin logic into common middleware

```bash
curl "http://localhost:3002/v1/schedules?apiKey=...&userId=2"
```

```bash
curl "http://localhost:3002/v1/schedules?apiKey=..." \
  -d '{"name":"Hello", "userId": 2}' \
  -H 'Content-Type: application/json'
```
2022-10-11 15:33:25 +01:00
..
attendees Fixed major flaw with authMiddleware 2022-10-10 20:23:08 -06:00
availabilities Fixed major flaw with authMiddleware 2022-10-10 20:23:08 -06:00
availability fix: lint add spaces 2022-07-12 20:01:51 +02:00
booking-references Refactors booking references endpoints (#180) 2022-10-11 15:25:57 +01:00
bookings Fixed major flaw with authMiddleware 2022-10-10 20:23:08 -06:00
custom-inputs feat: dynamic prisma 2022-06-06 18:17:10 +02:00
destination-calendars feat: dynamic prisma 2022-06-06 18:17:10 +02:00
event-types Remove console log 2022-10-06 10:59:46 -04:00
hooks fix: merge w main 2022-06-18 01:52:37 +02:00
me Me cleanup 2022-10-10 18:02:36 -06:00
memberships feat: dynamic prisma 2022-06-06 18:17:10 +02:00
payments feat: dynamic prisma 2022-06-06 18:17:10 +02:00
schedules Refactor + fix userIds filter (#179) 2022-10-11 15:33:25 +01:00
selected-calendars feat: dynamic prisma 2022-06-06 18:17:10 +02:00
teams Refactors teams 2022-10-10 20:25:47 -06:00
users Update pages/api/users/_get.ts 2022-07-08 19:34:26 +02:00
docs.ts feat: add operationId for autogenerated sdk 2022-05-05 18:18:00 +02:00
index.ts Update index.ts 2022-09-24 13:23:10 +00:00