]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/middlewares/validators/shared/video-blacklists.ts
Move middleware utils in middlewares
[github/Chocobozzz/PeerTube.git] / server / middlewares / validators / shared / video-blacklists.ts
similarity index 77%
rename from server/helpers/middlewares/video-blacklists.ts
rename to server/middlewares/validators/shared/video-blacklists.ts
index 3494fd6b010b1c40b5458cd7fa10df0e041565b0..01491c10f60a4b8dbb496ffd0b3761629de87bdd 100644 (file)
@@ -1,6 +1,6 @@
 import { Response } from 'express'
-import { VideoBlacklistModel } from '../../models/video/video-blacklist'
-import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes'
+import { VideoBlacklistModel } from '@server/models/video/video-blacklist'
+import { HttpStatusCode } from '@shared/core-utils'
 
 async function doesVideoBlacklistExist (videoId: number, res: Response) {
   const videoBlacklist = await VideoBlacklistModel.loadByVideoId(videoId)