blob: aba49c36e3d56415b5b592e49b7d57bcd7b9b2c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# Copyright (C) 2015 Custodia Project Contributors - see LICENSE file
import json
from custodia.httpd.consumer import HTTPConsumer
from custodia.secrets import Secrets
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?"})
|