Last active
March 27, 2017 15:08
-
-
Save itswadesh/940af7c4ef6ea84c1ebabfcf1cf19a7b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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