정의왕

Connection with client

...@@ -20,4 +20,4 @@ ...@@ -20,4 +20,4 @@
20 "host": "127.0.0.1", 20 "host": "127.0.0.1",
21 "dialect": "mysql" 21 "dialect": "mysql"
22 } 22 }
23 -} 23 +}
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -12,13 +12,13 @@ router.get('/',(req,res)=>{ ...@@ -12,13 +12,13 @@ router.get('/',(req,res)=>{
12 12
13 router.post('/',(req,res)=>{ 13 router.post('/',(req,res)=>{
14 User.create({ 14 User.create({
15 - name: '고병후', 15 + name: req.body.Id,
16 - pw:'1234', 16 + pw:req.body.Password,
17 - personality:'infj', 17 + personality:req.body.Personality,
18 - status:0 18 + status:false
19 }) 19 })
20 console.log(req.body); 20 console.log(req.body);
21 - return res.json({a: "hi"}); 21 + return res.sendStatus(200);
22 }); 22 });
23 23
24 //라우트 매개변수사용 24 //라우트 매개변수사용
......
1 import React from 'react'; 1 import React from 'react';
2 import ReactDOM from 'react-dom'; 2 import ReactDOM from 'react-dom';
3 -import {Provider} from "react-redux";
4 import './index.css'; 3 import './index.css';
5 import App from './App'; 4 import App from './App';
6 import 'semantic-ui-css/semantic.min.css' 5 import 'semantic-ui-css/semantic.min.css'
......