mirror of
https://github.com/Dvorinka/Portfolio.git
synced 2026-06-03 11:22:58 +00:00
12 lines
349 B
JavaScript
12 lines
349 B
JavaScript
'use strict';
|
|
|
|
const api_key = '054582e9ee66adcbe911e0008aa482a8';
|
|
const imageBaseURL = 'https://image.tmdb.org/t/p/';
|
|
|
|
const fetchDataFromServer = function (url, callback, optionalParam) {
|
|
fetch(url)
|
|
.then(response => response.json())
|
|
.then(data => callback(data, optionalParam));
|
|
}
|
|
|
|
export { imageBaseURL, api_key, fetchDataFromServer }; |