Toggle navigation
Toggle navigation
This project
Loading...
Sign in
오인제
/
Tunnel
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
정의왕
2021-12-07 02:05:37 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cd1a75f06a85c107963534ba46cb1b77774aa31d
cd1a75f0
1 parent
b66e814f
Connection with client
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
tunnel_BE/server/config/config.json
tunnel_BE/server/routes/register.js
turnel_FE/src/index.js
tunnel_BE/server/config/config.json
View file @
cd1a75f
...
...
@@ -20,4 +20,4 @@
"host"
:
"127.0.0.1"
,
"dialect"
:
"mysql"
}
}
}
\ No newline at end of file
...
...
tunnel_BE/server/routes/register.js
View file @
cd1a75f
...
...
@@ -12,13 +12,13 @@ router.get('/',(req,res)=>{
router
.
post
(
'/'
,(
req
,
res
)
=>
{
User
.
create
({
name
:
'고병후'
,
pw
:
'1234'
,
personality
:
'infj'
,
status
:
0
name
:
req
.
body
.
Id
,
pw
:
req
.
body
.
Password
,
personality
:
req
.
body
.
Personality
,
status
:
false
})
console
.
log
(
req
.
body
);
return
res
.
json
({
a
:
"hi"
}
);
return
res
.
sendStatus
(
200
);
});
//라우트 매개변수사용
...
...
turnel_FE/src/index.js
View file @
cd1a75f
import
React
from
'react'
;
import
ReactDOM
from
'react-dom'
;
import
{
Provider
}
from
"react-redux"
;
import
'./index.css'
;
import
App
from
'./App'
;
import
'semantic-ui-css/semantic.min.css'
...
...
Please
register
or
login
to post a comment