feat: complete train scheduling integration

This commit is contained in:
hagiye
2026-06-06 05:52:47 +03:00
parent 29247d4140
commit 788de5381e
56 changed files with 1191 additions and 141 deletions

10
cargo-types.service.ts Normal file
View File

@@ -0,0 +1,10 @@
import axios from 'axios';
const API_URL = import.meta.env.VITE_API_URL || 'http://localhost:3001';
export const cargoTypesService = {
async getCargoTypes() {
const { data } = await axios.get(`${API_URL}/api/cargo-types`);
return data;
},
};