idk get back later
parent
ca1e7e4208
commit
99d75c871b
|
|
@ -81,3 +81,11 @@ module.exports = function (req, res) {
|
||||||
var url = Math.floor(Math.random() * 100000).toString();
|
var url = Math.floor(Math.random() * 100000).toString();
|
||||||
getColorJson('http://colorhunt.co/c/' + url);
|
getColorJson('http://colorhunt.co/c/' + url);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function getRandom() {
|
||||||
|
return new Promise(res => {
|
||||||
|
request('http://colorhunt.co/c/random')
|
||||||
|
});
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue