Files
edr-platform/apps/edr-passenger-web/portal/src/services/stations.service.ts
2026-05-26 15:02:38 +03:00

15 lines
434 B
TypeScript

// import type { IStation } from "../types";
import { api } from "../utils/api";
import type { Passenger } from "@edr/types";
export const stationsService = {
list: async (): Promise<Passenger.IStation[]> => {
const { data } = await api.get("/stations");
return data.data;
},
get: async (id: string): Promise<Passenger.IStation> => {
const { data } = await api.get(`/stations/${id}`);
return data.data;
},
};