profile.controller.js 465 Bytes
Newer Older
JeongYeonwoo's avatar
0113    
JeongYeonwoo committed
1
import Profile from "../models/profile.js"
JeongYeonwoo's avatar
   
JeongYeonwoo committed
2
3
4
5
6
7
8
import bcrypt from "bcryptjs";
import jwt from 'jsonwebtoken'
import config from "../config.js"




JeongYeonwoo's avatar
0113    
JeongYeonwoo committed
9
10
11
12
13
14
const getimage = async (req, res) => {
    const defaultimg = 'https://t1.daumcdn.net/cfile/tistory/2761AA4558A05CBE2A'
    // const newImg = await new Profile({
    //     defaultimg
    //     //required를 하였기 때문에 이중 하나라도 없으면 에러 발생
    // }).save()
JeongYeonwoo's avatar
   
JeongYeonwoo committed
15
16
17
18


}

JeongYeonwoo's avatar
JeongYeonwoo committed
19
export default { getimage }