JungSeungHyun

correcterror2

...@@ -184,7 +184,7 @@ export const logout = (req,res)=>{ ...@@ -184,7 +184,7 @@ export const logout = (req,res)=>{
184 } 184 }
185 185
186 const getRepos = async(req,res) =>{ 186 const getRepos = async(req,res) =>{
187 - const url = "https://api.github.com/users/lsj8706/repos?sort=updated"; 187 + const url = "https://api.github.com/users/lsj8706/repos?sort=updated&per_page=2";
188 const latelyRepos = await axios.get(url).then(function(response){ 188 const latelyRepos = await axios.get(url).then(function(response){
189 return response.data; 189 return response.data;
190 }); 190 });
...@@ -193,7 +193,3 @@ const getRepos = async(req,res) =>{ ...@@ -193,7 +193,3 @@ const getRepos = async(req,res) =>{
193 const firstRepoUrl = latelyRepos.[0].html_url; 193 const firstRepoUrl = latelyRepos.[0].html_url;
194 const secondRepoUrl = latelyRepos.[1].html_url; 194 const secondRepoUrl = latelyRepos.[1].html_url;
195 }; 195 };
...\ No newline at end of file ...\ No newline at end of file
196 -export const logout = (req, res) => {
197 - req.logout();
198 - res.redirect("/");
199 -};
......