fix(services): restrict GET /uploads/messages/:file to authorized users
This commit is contained in:
@ -44,7 +44,6 @@ const postServiceSchema: FastifySchema = {
|
||||
401: fastifyErrors[401],
|
||||
403: fastifyErrors[403],
|
||||
404: fastifyErrors[404],
|
||||
431: fastifyErrors[431],
|
||||
500: fastifyErrors[500]
|
||||
}
|
||||
} as const
|
||||
|
@ -42,6 +42,7 @@ const postServiceSchema: FastifySchema = {
|
||||
401: fastifyErrors[401],
|
||||
403: fastifyErrors[403],
|
||||
404: fastifyErrors[404],
|
||||
431: fastifyErrors[431],
|
||||
500: fastifyErrors[500]
|
||||
}
|
||||
} as const
|
||||
|
Reference in New Issue
Block a user