diff options
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 |