Skip to content

Commit

Permalink
fix: use custom content type parser in updateObject too
Browse files Browse the repository at this point in the history
  • Loading branch information
inian committed Jul 15, 2021
1 parent d36e32a commit e3b8a0d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/routes/object/updateObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ export default async function routes(fastify: FastifyInstance) {
summary,
tags: ['object'],
})

fastify.addContentTypeParser(
['application/json', 'text/plain'],
function (request, payload, done) {
done(null)
}
)

fastify.put<updateObjectRequestInterface>(
'/:bucketName/*',
{
Expand Down

0 comments on commit e3b8a0d

Please # to comment.