From 0f8eab4e1157e83f39cd7298378bb5cc9ddb913a Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Tue, 23 Jun 2020 19:12:08 +0200 Subject: [feat] first simplistic implementation of a rest api It lacks authentication, and I need to debug a segfault/abort when quitting. But kind of useful for demonstration purposes. --- pkg/backend/api.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/backend/api.go') diff --git a/pkg/backend/api.go b/pkg/backend/api.go index 64dac9d..f63962c 100644 --- a/pkg/backend/api.go +++ b/pkg/backend/api.go @@ -76,6 +76,10 @@ func EnableMockBackend() { go enableMockBackend() } +func EnableWebAPI() { + go enableWebAPI() +} + /* these two are a bit redundant since we already add them to ctx. however, we want to have them available before everything else, to be able to parse cli arguments. In the long run, we probably want to move all vendoring to qt, so -- cgit v1.2.3