feat: adding openapi spect generation to the frontend client aas well as to fast api. Broke API out into different routes
This commit is contained in:
@@ -1,13 +1,4 @@
|
||||
import {MtaData, MtaStartTime} from "@/services/mta-api/types";
|
||||
|
||||
export const fetchStationData = async (stations: [string]): Promise<MtaData> => {
|
||||
const res = await fetch("/api/mta", {method: "POST"})
|
||||
const data = await res.json()
|
||||
return {
|
||||
mtaData: data
|
||||
};
|
||||
};
|
||||
|
||||
import { MtaStartTime} from "@/services/mta-api/types";
|
||||
|
||||
export const fetchStartDate = async (stations: [string]): Promise<MtaStartTime> => {
|
||||
const res = await fetch("/api/start_time", {method: "POST"})
|
||||
|
||||
Reference in New Issue
Block a user