mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-22 14:44:21 +00:00
Add missing which
parameter to /api/events/[slug]
This commit is contained in:
parent
7a29d5aaf0
commit
15c8d928c0
1 changed files with 3 additions and 3 deletions
|
@ -34,9 +34,9 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
|
|||
model: client.event,
|
||||
retrieve: {which},
|
||||
create: {create},
|
||||
upsert: {create, update, before: canEdit},
|
||||
update: {update, before: canEdit},
|
||||
destroy: {before: canEdit},
|
||||
upsert: {which, create, update, before: canEdit},
|
||||
update: {which, update, before: canEdit},
|
||||
destroy: {which, before: canEdit},
|
||||
})
|
||||
})
|
||||
}
|
Loading…
Reference in a new issue