fix(services): restrict GET /uploads/messages/:file to authorized users
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { application } from '../../../../application.js'
|
||||
import { authenticateUserTest } from '../../../../__test__/utils/authenticateUserTest.js'
|
||||
import { prismaMock } from '../../../../__test__/setup.js'
|
||||
import { memberExample } from '../../../../models/Member'
|
||||
import { memberExample } from '../../../../models/Member.js'
|
||||
import { channelExample } from '../../../../models/Channel.js'
|
||||
|
||||
describe('GET /channels/[channelId]', () => {
|
||||
|
@ -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