Skip to content

Commit 1809a17

Browse files
committed
export default gh_api
1 parent 96b7552 commit 1809a17

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/pages/projects.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Layout from "../components/layout";
22
import CardBox from "../components/card-project";
33
import { useEffect, useState } from "react";
4-
import { gh_api } from "../service/api";
4+
import gh_api from "../service/api";
55

66
import { PropsCardBox } from "../@Types/api.github";
77

src/service/api.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import axios from 'axios';
22

3-
export const gh_api = axios.create({
3+
const gh_api = axios.create({
44
baseURL: 'https://api.github.com',
55
});
66

7-
export const gh_lang_colors = axios.create({
8-
baseURL: 'https://raw.githubusercontent.com',
9-
});
7+
export default gh_api;
8+
9+
// export const gh_lang_colors = axios.create({
10+
// baseURL: 'https://raw.githubusercontent.com',
11+
// });

0 commit comments

Comments
 (0)