mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
feat: complete train scheduling integration
This commit is contained in:
10
cargo-types.service.ts
Normal file
10
cargo-types.service.ts
Normal 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;
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user