added youtube util and cors middleware

This commit is contained in:
Joe-Dowd
2020-03-19 23:32:18 +00:00
parent 5c3d18b0e2
commit 8543647cbc
5 changed files with 17 additions and 22 deletions

7
src/utils/youtubeAPI.js Normal file
View File

@@ -0,0 +1,7 @@
// YouTube API
const YouTubeAPI = require("youtube-api");
YouTubeAPI.authenticate({
type: "key",
key: config.youtubeAPIKey
});
module.exports = YouTubeAPI;