#1 response code changed

Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
Benny Samir Hierl 2022-02-05 13:20:44 +01:00
parent 4b553830b0
commit 8b0d8d27e3

View file

@ -49,6 +49,6 @@ export const createList = <RouteOptions>{
handler: async (request: GetBySlugUrlTextRequest, reply: FastifyReply) => {
request.log.debug(request.body)
const item = await wishlist.create(request.body as Wishlist)
return item
reply.code(201).send(item)
},
}