Merge branch 'dev' into alpha

This commit is contained in:
Stephanos A
2026-05-31 14:01:14 +03:00
25 changed files with 774 additions and 578 deletions

View File

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