Skip to content

Instantly share code, notes, and snippets.

@tarusharora
Created February 19, 2019 08:02
Show Gist options
  • Save tarusharora/8d3082d5ec9f347b7e104955d2aeed12 to your computer and use it in GitHub Desktop.
Save tarusharora/8d3082d5ec9f347b7e104955d2aeed12 to your computer and use it in GitHub Desktop.
Routes file containig auth related routes
const { validatePostLogin, validatePostSignup } = require('../validations/auth');
const { postLogin, postSignup } = require('../controllers/authController');
module.exports = async (fastify) => {
fastify.post('/auth/login', validatePostLogin, postLogin);
fastify.post('/auth/signup', validatePostSignup, postSignup);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment