Skip to content

Instantly share code, notes, and snippets.

@amandeepmittal
Created November 4, 2018 16:07
Show Gist options
  • Save amandeepmittal/6122d8ace3916c1a40af7f48a4a2ecf1 to your computer and use it in GitHub Desktop.
Save amandeepmittal/6122d8ace3916c1a40af7f48a4a2ecf1 to your computer and use it in GitHub Desktop.
import express from 'express';
import { signin, signout } from '../controllers/auth';
const router = express.Router();
router.route('/auth/signin').post(signin);
router.route('/auth/signout').get(signout);
export default router;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment