Skip to content

Commit a14d627

Browse files
authored
add HEAD Mehthod to getObjects route (#171)
1 parent 0fb4eae commit a14d627

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/routes/object/getObject.ts

+2
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export default async function routes(fastify: FastifyInstance) {
126126
fastify.get<getObjectRequestInterface>(
127127
'/authenticated/:bucketName/*',
128128
{
129+
exposeHeadRoute: true,
129130
// @todo add success response schema here
130131
schema: {
131132
params: getObjectParamsSchema,
@@ -143,6 +144,7 @@ export default async function routes(fastify: FastifyInstance) {
143144
fastify.get<getObjectRequestInterface>(
144145
'/:bucketName/*',
145146
{
147+
exposeHeadRoute: true,
146148
// @todo add success response schema here
147149
schema: {
148150
params: getObjectParamsSchema,

0 commit comments

Comments
 (0)