mirror of
https://github.com/khairul169/vaulterm.git
synced 2025-04-28 16:49:39 +07:00
11 lines
271 B
TypeScript
11 lines
271 B
TypeScript
import { ofetch } from "ofetch";
|
|
|
|
export const BASE_API_URL = process.env.EXPO_PUBLIC_API_URL || ""; //"http://10.0.0.100:3000";
|
|
export const BASE_WS_URL = BASE_API_URL.replace("http", "ws");
|
|
|
|
const api = ofetch.create({
|
|
baseURL: BASE_API_URL,
|
|
});
|
|
|
|
export default api;
|