summaryrefslogtreecommitdiff
path: root/pkg/backend/api.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-06-23 19:12:08 +0200
committerkali kaneko (leap communications) <kali@leap.se>2020-08-11 20:59:52 +0200
commit0f8eab4e1157e83f39cd7298378bb5cc9ddb913a (patch)
treee5e4d80aad90ba1cb1f34b32723c220064753760 /pkg/backend/api.go
parent3e0764caa84a21a60f971ec3693429a9981c5921 (diff)
[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.
Diffstat (limited to 'pkg/backend/api.go')
-rw-r--r--pkg/backend/api.go4
1 files changed, 4 insertions, 0 deletions
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