summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/v1.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/v1.erl b/src/v1.erl
index 73f7c28..6007aaa 100644
--- a/src/v1.erl
+++ b/src/v1.erl
@@ -45,11 +45,13 @@ get_proof_by_hash(SessionID, _Env, _Input) ->
niy(SessionID).
get_entries(SessionID, _Env, _Input) ->
niy(SessionID).
-get_roots(SessionID, _Env, _Input) ->
- niy(SessionID).
get_entry_and_proof(SessionID, _Env, _Input) ->
niy(SessionID).
+get_roots(SessionID, _Env, _Input) ->
+ R = [{certificates, []}], % NIY.
+ mod_esi:deliver(SessionID, binary_to_list(jiffy:encode({R}))).
+
%% For testing. FIXME: Remove.
hello(SessionID, Env, Input) ->
Query = httpd:parse_query(Input),