We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96b7552 commit 1809a17Copy full SHA for 1809a17
2 files changed
src/pages/projects.tsx
@@ -1,7 +1,7 @@
1
import Layout from "../components/layout";
2
import CardBox from "../components/card-project";
3
import { useEffect, useState } from "react";
4
-import { gh_api } from "../service/api";
+import gh_api from "../service/api";
5
6
import { PropsCardBox } from "../@Types/api.github";
7
src/service/api.ts
@@ -1,9 +1,11 @@
import axios from 'axios';
-export const gh_api = axios.create({
+const gh_api = axios.create({
baseURL: 'https://api.github.com',
});
-export const gh_lang_colors = axios.create({
8
- baseURL: 'https://raw.githubusercontent.com',
9
-});
+export default gh_api;
+
+// export const gh_lang_colors = axios.create({
10
+// baseURL: 'https://raw.githubusercontent.com',
11
+// });
0 commit comments