diff --git a/pages/api/Spotify.js b/pages/api/Spotify.js index a56be0b..65ee76d 100644 --- a/pages/api/Spotify.js +++ b/pages/api/Spotify.js @@ -36,7 +36,7 @@ export const getNowPlaying = async () => { }); }; -export default async (_, res) => { +const Spotify = async (_, res) => { const response = await getNowPlaying(); if (response.status === 204 || response.status > 400) { @@ -55,4 +55,6 @@ export default async (_, res) => { isPlaying, title, }); -}; \ No newline at end of file +}; + +export default Spotify \ No newline at end of file