diff --git a/pages/api/addTracks.ts b/pages/api/addTracks.ts index 4c3fa19..ff0993b 100644 --- a/pages/api/addTracks.ts +++ b/pages/api/addTracks.ts @@ -1,7 +1,7 @@ import type { NextApiRequest, NextApiResponse } from 'next' import axios from 'axios' -const Hundler = async (req: NextApiRequest, res: NextApiResponse) => { +const Handler = async (req: NextApiRequest, res: NextApiResponse) => { const body = req.body const playListId = body.playListId const uris = body.uris.uris @@ -39,4 +39,4 @@ const addTracks = async(headers: {[key: string]: string}, playListId: string, ur return response } -export default Hundler +export default Handler diff --git a/pages/signIn.tsx b/pages/signIn.tsx index eba111d..a02c0dc 100644 --- a/pages/signIn.tsx +++ b/pages/signIn.tsx @@ -6,7 +6,7 @@ import Layout from '../components/Layout' import { useRouter } from 'next/router' import { useSession } from 'next-auth/react' -const SginIn: NextPage = () => { +const SignIn: NextPage = () => { const router = useRouter() const { data: session, status } = useSession() @@ -28,4 +28,4 @@ const SginIn: NextPage = () => { ) } -export default SginIn +export default SignIn