import { Router , Request , Response } from 'express' ; import { User } from '../models/User' ; import { AuthRouter , requireAuth } from './auth.router' ; const router = Router ( ) ; router . use ( '/auth' , AuthRouter ) ; router . get ( '/' , async ( req , res ) => { } ) ; router . get ( '/:id' , async ( req , res ) => { let { id } = req . params ; const item = await User . findByPk ( id ) ; res . send ( item ) ; } ) ; export const UserRouter = router ;