aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.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.ts
parente02643f32e4c97ca307f8fc5b69be79c40d70a3b (diff)
downloadPeerTube-4d4e5cd4dca78480ec7f40e747f424cd107376a4.tar.gz
PeerTube-4d4e5cd4dca78480ec7f40e747f424cd107376a4.tar.zst
PeerTube-4d4e5cd4dca78480ec7f40e747f424cd107376a4.zip
require -> import
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts13
1 files changed, 7 insertions, 6 deletions
diff --git a/server.ts b/server.ts
index f5413b8e3..b27a83860 100644
--- a/server.ts
+++ b/server.ts
@@ -3,13 +3,14 @@ if ([ 'dev', 'test'].indexOf(process.env.NODE_ENV) !== -1) {
3} 3}
4 4
5// ----------- Node modules ----------- 5// ----------- Node modules -----------
6import bodyParser = require('body-parser') 6import * as bodyParser from 'body-parser'
7import express = require('express') 7import * as express from 'express'
8// FIXME: cannot import express-validator
8const expressValidator = require('express-validator') 9const expressValidator = require('express-validator')
9import http = require('http') 10import * as http from 'http'
10import morgan = require('morgan') 11import * as morgan from 'morgan'
11import path = require('path') 12import * as path from 'path'
12import bittorrentTracker = require('bittorrent-tracker') 13import * as bittorrentTracker from 'bittorrent-tracker'
13import { Server as WebSocketServer } from 'ws' 14import { Server as WebSocketServer } from 'ws'
14 15
15const TrackerServer = bittorrentTracker.Server 16const TrackerServer = bittorrentTracker.Server