lightsword
Version:
LightSword Secure SOCKS5 Proxy / iOS VPN Server
16 lines (12 loc) • 432 B
text/typescript
//-----------------------------------
// Copyright(c) 2015 Neko
//-----------------------------------
import * as express from 'express';
import * as bodyParser from 'body-parser';
import * as apiRouter from './apiRouter';
let app = express();
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.use('/api', <express.IRouter<express.Router>>apiRouter);
app.listen(5000, 'localhost');