소개
게시글
질문&답변
2021.05.02
movieimage가 안뜨네요...
저도 같은 문제를 겪었습니다. 감사합니다.
- 8
- 5
- 241
고민있어요
2021.04.30 10:54
취약점 문제
- 0
- 0
- 68
질문&답변
2021.04.29
안녕하세요 선생님!
라우터 부분 코드도 추가했습니다!
- 0
- 5
- 155
질문&답변
2021.04.29
안녕하세요 선생님!
const express = require ( 'express' ); const db = require ( './models' ); const cors = require ( 'cors' ); const app = express (); db . sequelize . sync (); app . use ( express . json ()); app . use ( cors ({ origin : 'http://localhost:3000' , credentials : true , })); app . get ( '/' , ( req , res ) => { res . send ( 'hello backend' ) }) app . post ( '/user' , async ( req , res , next ) => { try { console . log ( req . body ) const newUser = await db . User . create ({ where : { email : req . body . email , password : req . body . password , nickname : req . body . nickname , } }); res . status ( 201 ). json ( newUser ); } catch ( err ) { console . log ( err ); next ( err ); } }) app . listen ( 3085 , () => { console . log ( 'backend server on ${3085} port' ) })
- 0
- 5
- 155
질문&답변
2021.04.29
안녕하세요 선생님!
(사진) 워크벤치에서도 테이블이 보이지 않습니다!
- 0
- 5
- 155