Skip to content

Instantly share code, notes, and snippets.

@hokaccha
Last active August 29, 2015 14:04
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 hokaccha/bfa4198cad543c266a7a to your computer and use it in GitHub Desktop.
Save hokaccha/bfa4198cad543c266a7a to your computer and use it in GitHub Desktop.
var connect = require('connect');
var http = require('http');
var serveStatic = require('serve-static');
var stubcell = require('stubcell-middleware');
var app = connect();
app.use(serveStatic('public', { index: ['index.html']}));
app.use('/api', stubcell('example.yaml'));
app.listen(3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment