Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이세진
/
dev-profile
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
10
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
JungSeungHyun
2021-05-25 23:43:20 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9c0cf78abe9450ba7ade9069dc9f838c2b68a928
9c0cf78a
1 parent
38ef570a
correcterror2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
src/controllers/userController.js
src/controllers/userController.js
View file @
9c0cf78
...
...
@@ -184,7 +184,7 @@ export const logout = (req,res)=>{
}
const
getRepos
=
async
(
req
,
res
)
=>
{
const
url
=
"https://api.github.com/users/lsj8706/repos?sort=updated"
;
const
url
=
"https://api.github.com/users/lsj8706/repos?sort=updated
&per_page=2
"
;
const
latelyRepos
=
await
axios
.
get
(
url
).
then
(
function
(
response
){
return
response
.
data
;
});
...
...
@@ -192,8 +192,4 @@ const getRepos = async(req,res) =>{
const
secondRepoName
=
latelyRepos
.[
1
].
name
;
const
firstRepoUrl
=
latelyRepos
.[
0
].
html_url
;
const
secondRepoUrl
=
latelyRepos
.[
1
].
html_url
;
};
export
const
logout
=
(
req
,
res
)
=>
{
req
.
logout
();
res
.
redirect
(
"/"
);
};
};
\ No newline at end of file
...
...
Please
register
or
login
to post a comment