Skip to content

Instantly share code, notes, and snippets.

@TaylorAckley
Created October 8, 2018 00:08
Show Gist options
  • Save TaylorAckley/1ff7b5553ab4dd7443c633a6c87ddffb to your computer and use it in GitHub Desktop.
Save TaylorAckley/1ff7b5553ab4dd7443c633a6c87ddffb to your computer and use it in GitHub Desktop.
MVC - Auth Routes
const express = require('express');
const AccountCtrl = require('../controllers/account.controller');
const auth = express.Router();
auth
.get('/account/self', AccountCtrl.self)
.put('/account/:_id', AccountCtrl.update)
.delete('/account/:_id', AccountCtrl.remove)
module.exports = auth;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment