diff --git a/apis/service.js b/apis/service.js new file mode 100644 index 0000000..6fe7dfe --- /dev/null +++ b/apis/service.js @@ -0,0 +1,17 @@ +import axios from "axios"; + +// export const getToken = () => localStorage.getItem('access_token') ?? null + +export const statDustAPI = axios.create({ + baseURL: '', + headers: { + accept: "application/json", + "Content-Type": "application/json", + "Access-Control-Allow-Origin": "*", + // "ACCESS-TOKEN": getToken() ?? '' + }, +}); + +export async function getDusts(university) { + return await statDustAPI.get(`/map/${university}`) +} \ No newline at end of file diff --git a/image/img-dust-black.png b/image/img-dust-black.png new file mode 100644 index 0000000..b71ef23 Binary files /dev/null and b/image/img-dust-black.png differ diff --git a/pages/_document.jsx b/pages/_document.jsx index dd32ab6..167645d 100644 --- a/pages/_document.jsx +++ b/pages/_document.jsx @@ -23,10 +23,7 @@ export default class MyDocument extends Document { return ( -