Skip to content

Instantly share code, notes, and snippets.

@itswadesh
Last active March 27, 2017 15:08
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 itswadesh/940af7c4ef6ea84c1ebabfcf1cf19a7b to your computer and use it in GitHub Desktop.
Save itswadesh/940af7c4ef6ea84c1ebabfcf1cf19a7b to your computer and use it in GitHub Desktop.
// Dependencies
var express = require('express');
var router = express.Router();
//Product
var Appointment = require('./model');
Appointment.methods(['get', 'put', 'post', 'delete']);
Appointment.register(router, '/appointments');
// Return router
module.exports = router;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment