init: Init React Application

This commit is contained in:
2025-05-29 13:21:33 +03:00
parent 9444939507
commit 17de7e495f
66 changed files with 10425 additions and 0 deletions

View File

@ -0,0 +1,17 @@
import { API_URL, authInstance } from "@shared";
import { makeAutoObservable } from "mobx";
class VehicleStore {
vehicles: any[] = [];
constructor() {
makeAutoObservable(this);
}
getVehicles = async () => {
const response = await authInstance.get(`${API_URL}/vehicle`);
this.vehicles = response.data;
};
}
export const vehicleStore = new VehicleStore();