Created
February 19, 2019 08:02
-
-
Save tarusharora/8d3082d5ec9f347b7e104955d2aeed12 to your computer and use it in GitHub Desktop.
Routes file containig auth related routes
This file contains hidden or 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 { 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