const express = require('express')

const router = express.Router()

const {protect} =require('../middleware/auth')
const {search} = require('../controllers/searchController')

router.use(protect)

router.get('/search', search)

module.exports =router
