blob: 4cde1527daa2638cea3112e696aae3da3b63ab5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# Copyright (C) 2015 Custodia Project Contributors - see LICENSE file
from custodia.httpd.consumer import HTTPConsumer
from custodia.secrets import Secrets
import json
class Root(HTTPConsumer):
def __init__(self, *args, **kwargs):
super(Root, self).__init__(*args, **kwargs)
if self.store_name is not None:
self.add_sub('secrets', Secrets(self.config))
def GET(self, request, response):
return json.dumps({'message': "Quis custodiet ipsos custodes?"})
|