profileRoutes.js 275 B

123456789101112
  1. import express from "express";
  2. import { getProfile, updateProfile } from "../controllers/profile.js";
  3. import auth from '../middleware/auth.js '
  4. const router = express.Router()
  5. router.get('/',auth, getProfile)
  6. router.patch('/',auth, updateProfile)
  7. export default router