user.controller.js 366 Bytes
Newer Older
한규민's avatar
한규민 committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import axios from 'axios'
import sequelize from 'sequelize'
import { User } from '../db/index.js'

const compareId = async (req, res) => {
    const id = req.params.userId;
    const userid = await User.findAll({where:{userId: id}});
    if(userid){
        return res.json(true);
    }else{
        return res.json(false);
    }
}

export default {
    compareId
}