Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// Dependencies
var express = require('express');
var router = express.Router();
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
You can’t perform that action at this time.