Skip to content

Instantly share code, notes, and snippets.

@ankur-anand
Created March 20, 2018 11:20
Show Gist options
  • Select an option

  • Save ankur-anand/fb91d1ebf4876ee94de4a20d5f11f3ca to your computer and use it in GitHub Desktop.

Select an option

Save ankur-anand/fb91d1ebf4876ee94de4a20d5f11f3ca to your computer and use it in GitHub Desktop.

Revisions

  1. ankur-anand created this gist Mar 20, 2018.
    8 changes: 8 additions & 0 deletions routeHandlerv1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    const router = [{
    path: '*',
    method: '*',
    handle: function(req, res) {
    res.writeHead(200, {'Content-Type': 'text/plain'});
    res.end('404');
    }
    }];