small changes

This commit is contained in:
2026-03-16 10:56:52 +05:30
parent 0ca6c9c859
commit 8bea06be5e
6 changed files with 13 additions and 6 deletions

View File

@@ -3,7 +3,7 @@
* Handles all communication with the backend API
*/
const API_BASE_URL = 'http://localhost:8001'
const API_BASE_URL = import.meta.env.VITE_API_URL || 'http://localhost:8001'
type ApiOptions = {
method?: 'GET' | 'POST' | 'PUT' | 'DELETE'