diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-05 21:53:49 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-05 21:53:49 +0200 |
commit | 4d4e5cd4dca78480ec7f40e747f424cd107376a4 (patch) | |
tree | 1b132aab503751ae0f4c8ee6c7595ad2d65f3a50 /server.ts | |
parent | e02643f32e4c97ca307f8fc5b69be79c40d70a3b (diff) | |
download | PeerTube-4d4e5cd4dca78480ec7f40e747f424cd107376a4.tar.gz PeerTube-4d4e5cd4dca78480ec7f40e747f424cd107376a4.tar.zst PeerTube-4d4e5cd4dca78480ec7f40e747f424cd107376a4.zip |
require -> import
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -3,13 +3,14 @@ if ([ 'dev', 'test'].indexOf(process.env.NODE_ENV) !== -1) { | |||
3 | } | 3 | } |
4 | 4 | ||
5 | // ----------- Node modules ----------- | 5 | // ----------- Node modules ----------- |
6 | import bodyParser = require('body-parser') | 6 | import * as bodyParser from 'body-parser' |
7 | import express = require('express') | 7 | import * as express from 'express' |
8 | // FIXME: cannot import express-validator | ||
8 | const expressValidator = require('express-validator') | 9 | const expressValidator = require('express-validator') |
9 | import http = require('http') | 10 | import * as http from 'http' |
10 | import morgan = require('morgan') | 11 | import * as morgan from 'morgan' |
11 | import path = require('path') | 12 | import * as path from 'path' |
12 | import bittorrentTracker = require('bittorrent-tracker') | 13 | import * as bittorrentTracker from 'bittorrent-tracker' |
13 | import { Server as WebSocketServer } from 'ws' | 14 | import { Server as WebSocketServer } from 'ws' |
14 | 15 | ||
15 | const TrackerServer = bittorrentTracker.Server | 16 | const TrackerServer = bittorrentTracker.Server |