From acdfa2840f867e686471a8e9ac3f29353fab7dd1 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Fri, 27 Oct 2017 10:10:49 -0400 Subject: hi --- lib/image.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/image.js') diff --git a/lib/image.js b/lib/image.js index 40045b3..5b6efb9 100644 --- a/lib/image.js +++ b/lib/image.js @@ -1,5 +1,6 @@ -// TODO: Put the project ID in a config file. +import { imageEndpoint } from '../config'; + export default function(image, width = 300, height = 300) { - if(!image || !image.secret) return ''; - return `https://images.graph.cool/v1/cj5xz8szs28930145gct82bdj/${image.secret}/${width}x${height}`; + if (!image || !image.secret) return ''; + return `${imageEndpoint}/${image.secret}/${width}x${height}`; } -- cgit v1.3