Skip to content

Instantly share code, notes, and snippets.

@a11smiles

a11smiles/app.js Secret

Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a11smiles/3f192d506525347cb33b to your computer and use it in GitHub Desktop.
Save a11smiles/3f192d506525347cb33b to your computer and use it in GitHub Desktop.
/// <reference path="typings/node/node.d.ts" />
/// <reference path="typings/express/express.d.ts" />
/// <reference path="typings/body-parser/body-parser.d.ts" />
var express = require('express');
var app = express();
app.use('/', express.static('./'));
app.get('/', function(req, res){
res.sendFile('default.html', { root: __dirname });
});
app.listen(45000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment