aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
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