mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-08-20 15:25:39 -04:00
add /api/music Spotify endpoint (top tracks and now playing)
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ export default async (req: VercelRequest, res: VercelResponse) => {
|
||||
res.setHeader("Access-Control-Allow-Origin", "*");
|
||||
|
||||
// send client the *new* hit count
|
||||
res.json(hits);
|
||||
res.status(200).json(hits);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user