JungSeungHyun

correcterror2

......@@ -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
......