import { Request , Response , Router } from 'express' ; const userRouter = Router ( ) ; import requireLogin from '@src/middlewares/requireLogin' ; userRouter . get ( '/current' , requireLogin , async ( req , res ) => { res . status ( 200 ) . send ( { message : 'User retrieved successfully' , user : req . user } ) ; } ) ; export default userRouter ;