Skip to content

Instantly share code, notes, and snippets.

@Hogent
Created May 15, 2013 12:02
Show Gist options
  • Save Hogent/5583498 to your computer and use it in GitHub Desktop.
Save Hogent/5583498 to your computer and use it in GitHub Desktop.
//server.js
var express = require('express'),
notes = require('./routes/notes');
var app = express();
app.get('/notes', notes.findAll);
app.get('/notes/:id', notes.findById);
app.listen(3000);
console.log('Listening on port 3000...');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment