mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2024-11-10 02:27:29 +00:00
12 lines
246 B
JavaScript
12 lines
246 B
JavaScript
const fetch = require("node-fetch")
|
|
|
|
function request(url, options = {}) {
|
|
if (!options.headers) options.headers = {}
|
|
options.headers = {
|
|
"user-agent": "CloudTubeBackend/1.0"
|
|
}
|
|
return fetch(url, options)
|
|
}
|
|
|
|
module.exports.request = request
|