260312_01_ENH: Error 페이지 및 Redirect 페이지 구현
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { clientEnv } from "@/lib/env.client";
|
||||
import {DEFAULT_API_TIMEOUT_MS} from "@/const/commonConst";
|
||||
|
||||
export type HttpMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
||||
|
||||
@@ -105,7 +106,7 @@ const isJsonContentType = (ctype: string) => {
|
||||
export const createHttpClient = (baseURL: string, opts: HttpClientOptions = {}) => {
|
||||
const {
|
||||
getToken,
|
||||
defaultTimeoutMs = 60_000,
|
||||
defaultTimeoutMs = DEFAULT_API_TIMEOUT_MS,
|
||||
defaultHeaders = { "content-type": "application/json" },
|
||||
setErrorMessage,
|
||||
} = opts;
|
||||
|
||||
Reference in New Issue
Block a user