From fb3509fc9dfa8b1c27da60b53d61d479de571783 Mon Sep 17 00:00:00 2001 From: Simone Gotti Date: Mon, 6 May 2019 17:57:52 +0200 Subject: [PATCH] login: use fetchRemoteSources --- src/util/data.js | 6 ++++++ src/views/Login.vue | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/util/data.js b/src/util/data.js index c1f6659..b70449d 100644 --- a/src/util/data.js +++ b/src/util/data.js @@ -107,4 +107,10 @@ export async function approveTask(runid, taskid) { } let res = await fetch(apiurl(path), init) return res.json(); +} + +export async function fetchRemoteSources() { + let path = "/remotesources" + let res = await fetch(apiurl(path)); + return res.json(); } \ No newline at end of file diff --git a/src/views/Login.vue b/src/views/Login.vue index 17b00cb..70fa7fa 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -19,8 +19,10 @@