Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
butter-studio
Commits
2210462f
Commit
2210462f
authored
Jul 28, 2021
by
한규민
Browse files
푸시
parent
bd9ff2cc
Changes
6
Hide whitespace changes
Inline
Side-by-side
client/src/components/BoxOffice/BoxOffice.js
View file @
2210462f
...
...
@@ -36,7 +36,6 @@ const BoxOffice = () => {
return
(
<
div
className
=
"
container text-center my-3
"
>
{
console
.
log
(
TMDB_TopRated_Data
)}
<
div
className
=
"
container text-center my-3
"
>
<
h2
className
=
"
font-weight-light
"
>
Bootstrap
Multi
Slide
Carousel
<
/h2
>
<
div
className
=
"
row mx-auto my-auto justify-content-center
"
>
...
...
client/src/components/MyInfo/MyInfo.js
View file @
2210462f
...
...
@@ -5,7 +5,7 @@ import authApi from "../../apis/auth.api";
const
MyInfo
=
()
=>
{
const
{
user
}
=
useAuth
();
const
[
userNickName
,
setUserNickName
]
=
useState
(
""
);
const
[
userNickName
,
setUserNickName
]
=
useState
(
user
.
nickname
);
const
getNickName
=
async
(
id
)
=>
{
console
.
log
(
id
);
...
...
client/src/components/Navs/SubNav.js
View file @
2210462f
...
...
@@ -11,7 +11,6 @@ const SubNav = () => {
<
/
>
:
<
Link
className
=
"
nav-link text-white
"
to
=
"
/admin
"
>
관리자페이지
<
/Link>
}
<
Link
className
=
"
nav-link text-white
"
to
=
"
/
"
onClick
=
{
logout
}
>
로그아웃
<
/Link
>
{
/* <a className="nav-link text-white" href="/mypage" onClick={logout}>로그아웃</a> */
}
<
/nav>
:
<
nav
className
=
"
nav justify-content-end py-1
"
>
<
Link
className
=
"
nav-link text-white
"
to
=
"
/login
"
>
로그인
<
/Link
>
...
...
server/controllers/user.controller.js
View file @
2210462f
...
...
@@ -23,6 +23,7 @@ const login = async (req, res) => {
const
signData
=
{
id
:
user
.
id
,
nickName
:
user
.
nickname
,
role
:
userRole
.
name
,
};
console
.
log
(
"
signData :
"
,
signData
);
...
...
@@ -40,6 +41,7 @@ const login = async (req, res) => {
// 5) 사용자 반환
res
.
json
({
id
:
user
.
id
,
nickName
:
user
.
nickname
,
role
:
userRole
.
name
,
});
}
else
{
...
...
server/db/index.js
View file @
2210462f
...
...
@@ -29,9 +29,6 @@ const Cinema = CinemaModel(sequelize)
User
.
belongsTo
(
Role
);
Role
.
hasOne
(
User
);
User
.
belongsTo
(
Role
);
Role
.
hasOne
(
User
);
export
{
sequelize
,
User
,
...
...
server/routes/user.route.js
View file @
2210462f
...
...
@@ -24,7 +24,7 @@ router
.
get
(
userCtrl
.
confirmMbnum
)
router
.
route
(
"
/:id
dd
"
)
.
route
(
"
/:id
"
)
.
get
(
userCtrl
.
getNickName
)
export
default
router
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment