dev configuration for api
All checks were successful
Build and Deploy Frontend / build-and-deploy (push) Successful in 6s
Build and Deploy API / build-and-deploy (push) Successful in 11s

This commit is contained in:
2026-03-10 22:58:21 -05:00
parent 9b6a4c75b9
commit b1865afced
4 changed files with 13 additions and 4 deletions

View File

@@ -9,8 +9,9 @@ import type { User } from "../models/User.ts";
const API_URL: string = "/users";
const baseUrl: string = import.meta.env.DEV ? import.meta.env.VITE_DEV_API_URL : import.meta.env.VITE_PROD_API_URL; // TODO: overarching api service
const api = axios.create({
baseURL: "http://10.145.164.106:5227/api"
baseURL: baseUrl
});
export const getUsers = () => api.get<User[]>(`${API_URL}`);