Created
October 8, 2018 00:08
-
-
Save TaylorAckley/1ff7b5553ab4dd7443c633a6c87ddffb to your computer and use it in GitHub Desktop.
MVC - Auth Routes
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
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