Untangled file server from request event handler. #30

Open
wants to merge 1 commit into
from

Projects

None yet

1 participant

@alexindigo

My use case:

tako.route('/', function(req, res) {

  // ...custom logic goes here...

  // output index.html
  this.serveFiles('index.html', req, res);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment