fixed Github repos not getting accessed and their CSS

This commit is contained in:
QkoSad
2024-09-28 16:13:05 +03:00
parent 9bc2015426
commit c6b7bfbea1
6 changed files with 41 additions and 27 deletions
-2
View File
@@ -297,8 +297,6 @@ router.delete("/education/:edu_id", auth, async (req, res) => {
// @desc Get user repos from Github
// @access Public
router.get("/github/:username", async (req, res) => {
console.log(config.get("githubToken"));
console.log(req.params.username);
try {
const uri = encodeURI(
`https://api.github.com/users/${req.params.username}/repos?per_page=5&sort=created:asc`,