Skip to content

Commit

Permalink
chore: axiosInstance 이동 및 ApiResponse interface
Browse files Browse the repository at this point in the history
  • Loading branch information
a-honey committed Jan 7, 2024
1 parent 0363234 commit d84fb9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Empty file removed src/api/.gitkeep
Empty file.
6 changes: 6 additions & 0 deletions src/pages/api/axiosInstance.ts → src/api/axiosInstance.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import axios from 'axios';

export interface ApiResponseDTO<T> {
data: T;
status: number;
message: string;
}

const axiosInstance = axios.create({
baseURL: 'https://localhost:3000',
timeout: 5000,
Expand Down

0 comments on commit d84fb9b

Please sign in to comment.