fix(services): restrict GET /uploads/messages/:file to authorized users

This commit is contained in:
Divlo
2022-01-06 18:13:13 +01:00
parent 03946f26e7
commit 97b1d04261
23 changed files with 1314 additions and 2534 deletions

View File

@ -6,8 +6,8 @@ import { userSettingsExample } from '../../models/UserSettings.js'
import {
generateAccessToken,
generateRefreshToken
} from '../../tools/utils/jwtToken'
import { prismaMock } from '../setup'
} from '../../tools/utils/jwtToken.js'
import { prismaMock } from '../setup.js'
export const authenticateUserTest = async (): Promise<{
accessToken: string