aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/client.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-05 21:53:49 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-05 21:53:49 +0200
commit4d4e5cd4dca78480ec7f40e747f424cd107376a4 (patch)
tree1b132aab503751ae0f4c8ee6c7595ad2d65f3a50 /server/controllers/client.ts
parente02643f32e4c97ca307f8fc5b69be79c40d70a3b (diff)
downloadPeerTube-4d4e5cd4dca78480ec7f40e747f424cd107376a4.tar.gz
PeerTube-4d4e5cd4dca78480ec7f40e747f424cd107376a4.tar.zst
PeerTube-4d4e5cd4dca78480ec7f40e747f424cd107376a4.zip
require -> import
Diffstat (limited to 'server/controllers/client.ts')
-rw-r--r--server/controllers/client.ts8
1 files changed, 3 insertions, 5 deletions
diff --git a/server/controllers/client.ts b/server/controllers/client.ts
index ce5608c9b..c3d28245c 100644
--- a/server/controllers/client.ts
+++ b/server/controllers/client.ts
@@ -1,10 +1,8 @@
1import { parallel } from 'async' 1import { parallel } from 'async'
2import express = require('express') 2import * as express from 'express'
3import fs = require('fs') 3import * as fs from 'fs'
4import { join } from 'path' 4import { join } from 'path'
5import expressValidator = require('express-validator') 5import * as validator from 'validator'
6// TODO: use .validator when express-validator typing will have validator field
7const validator = expressValidator['validator']
8 6
9import { database as db } from '../initializers/database' 7import { database as db } from '../initializers/database'
10import { 8import {