import { Router } from 'express'
import validations from './validations'
import controllers from './controllers'
import auth from '../../utils/auth'
const router = Router()


router.get('/', auth.authorizeUser, controllers.getSmartMatches)

router.get('/:id', validations.checkId, auth.authorizeUser, controllers.getSmartMatch)

router.post('/:id/reject', validations.checkId, auth.authorizeUser, controllers.postRejectSmartMatch)

router.post('/:id/accept', validations.checkId, auth.authorizeUser, controllers.postAcceptSmartMatch)

router.post('/:id/feedback', validations.postFeedback, auth.authorizeUser, controllers.postFeedbackSmartMatch)

router.post('/create-smart-matches', controllers.postCreateSmartMatches)

module.exports = router
