diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-06-23 19:12:08 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-08-11 20:59:52 +0200 |
commit | 0f8eab4e1157e83f39cd7298378bb5cc9ddb913a (patch) | |
tree | e5e4d80aad90ba1cb1f34b32723c220064753760 /gui/backend.go | |
parent | 3e0764caa84a21a60f971ec3693429a9981c5921 (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 'gui/backend.go')
-rw-r--r-- | gui/backend.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gui/backend.go b/gui/backend.go index faf682a..875706d 100644 --- a/gui/backend.go +++ b/gui/backend.go @@ -66,6 +66,11 @@ func InitializeTestBitmaskContext() { backend.EnableMockBackend() } +//export EnableWebAPI +func EnableWebAPI() { + backend.EnableWebAPI() +} + //export RefreshContext func RefreshContext() *C.char { return (*C.char)(backend.RefreshContext()) |