14 lines
369 B
TypeScript
14 lines
369 B
TypeScript
import { HttpClient } from "sim-shared/infrastructure/HTTPClient.js"
|
|
import { env } from "./env/index.js"
|
|
import { jwtService } from "./jwtService.config.js"
|
|
|
|
const OBJ_BASE_URL = env.OBJ_BASE_URL
|
|
|
|
export const httpInstance = new HttpClient({
|
|
baseURL: OBJ_BASE_URL,
|
|
headers: {
|
|
"content-type": " application/json; charset=utf-8"
|
|
},
|
|
jwtManager: jwtService
|
|
})
|