// Version 0 
var express = require('express');
var contacts = require('../control/contacts')
var customAuth = require('../lib/customAuth')
var app = module.exports = express();

 // middleware that only applies to this version of the API
app.use(customAuth());

// normal routes, all will be pre-fixed by the version
app.get('/contacts', contacts.index) // /v0/contacts