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:
lucas.oskorep
2023-07-17 02:07:41 -04:00
parent add28cafc6
commit 4a20152ff5
45 changed files with 3379 additions and 206 deletions

View File

@@ -1,10 +1,11 @@
'use client'
import React, {useEffect, useState} from 'react';
import {fetchStartDate} from "@/services/mta-api/mta-server";
import {MtaStartTime} from "@/services/mta-api/types";
import Image from 'next/image';
const TitleBar = () => {
const Header = () => {
const [data, setData] = useState<MtaStartTime | null>(null);
useEffect(() => {
@@ -13,7 +14,6 @@ const TitleBar = () => {
console.log("CALLING API")
const mtaData = await fetchStartDate([""])
setData(mtaData)
} catch (error) {
console.error('Error fetching data:', error);
}
@@ -53,4 +53,4 @@ const TitleBar = () => {
);
};
export default TitleBar;
export default Header;