From d84fb9b565740a773a0cde1bc44e84b1dd37787a Mon Sep 17 00:00:00 2001 From: a-honey Date: Sun, 7 Jan 2024 21:05:56 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20axiosInstance=20=EC=9D=B4=EB=8F=99=20?= =?UTF-8?q?=EB=B0=8F=20ApiResponse=20interface?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/.gitkeep | 0 src/{pages => }/api/axiosInstance.ts | 6 ++++++ 2 files changed, 6 insertions(+) delete mode 100644 src/api/.gitkeep rename src/{pages => }/api/axiosInstance.ts (70%) diff --git a/src/api/.gitkeep b/src/api/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/src/pages/api/axiosInstance.ts b/src/api/axiosInstance.ts similarity index 70% rename from src/pages/api/axiosInstance.ts rename to src/api/axiosInstance.ts index 1bd6f12..7700f30 100644 --- a/src/pages/api/axiosInstance.ts +++ b/src/api/axiosInstance.ts @@ -1,5 +1,11 @@ import axios from 'axios'; +export interface ApiResponseDTO { + data: T; + status: number; + message: string; +} + const axiosInstance = axios.create({ baseURL: 'https://localhost:3000', timeout: 5000,