From 52278a54e17a6b63927e313147ac6f5b9a980d66 Mon Sep 17 00:00:00 2001 From: 123niel Date: Thu, 14 Feb 2019 11:08:50 +0100 Subject: [PATCH] using api_url constant in fetch --- src/services/ChannelService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/ChannelService.ts b/src/services/ChannelService.ts index 15db882..c37b692 100644 --- a/src/services/ChannelService.ts +++ b/src/services/ChannelService.ts @@ -2,7 +2,7 @@ const API_URL = 'http://haveachin.de:1888/v1/channels'; export default class ChannelService { public static async fetchAllChannels() { - const response = await fetch('http://haveachin.de:1888/v1/channels'); + const response = await fetch(API_URL); const json = await response.json(); return json; }