This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const request = require("request"); | |
const getStream = require("get-stream"); | |
const API_KEY = "your-api-key"; | |
function authorize(authorization) { | |
if (authorization !== API_KEY) { | |
throw new Error("Your API key is invalid or incorrect."); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require("express"); | |
const fs = require("fs"); | |
const app = require("./app"); | |
const server = express(); | |
// Load file config.json | |
const file = fs.readFileSync("./config.json"); | |
const config = JSON.parse(file); |
NewerOlder