Files
calendar/pages/api
d68ce5e72f Admin privileges for /availabilities endpoint (#169)
* List other user's availabilities

* /availabilityId methods for other users

* Add return statements

* Accept userId single value or array

* Add zod schema checks

* Filter for schedules only with an availability

* Adds safeParsing of JSON before safeParsing of zod

* Removed console log

* Adds safe JSON parsing before .safeParse

* Allow API call without necessarily passing userId

Allow `/availabilities` call by a regular user without having to pass their userId to make it work

Co-authored-by: Syed Ali Shahbaz <52925846+alishaz-polymath@users.noreply.github.com>
2022-10-07 15:26:02 +05:30
..
2022-06-18 01:52:37 +02:00
2022-07-12 20:01:51 +02:00
2022-06-06 18:17:10 +02:00
2022-06-06 18:17:10 +02:00
2022-10-06 10:59:46 -04:00
2022-06-18 01:52:37 +02:00
2022-09-06 19:40:23 +02:00
2022-06-06 18:17:10 +02:00
2022-06-06 18:17:10 +02:00
2022-10-07 13:47:46 +05:30
2022-06-06 18:17:10 +02:00
2022-07-12 20:09:54 +02:00
2022-07-08 19:34:26 +02:00
2022-09-24 13:23:10 +00:00